[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] [Matplotlib-users] Strange issue when using Matplotlib
From:       Lukas Hetzenecker <LuHe () gmx ! at>
Date:       2010-03-23 15:03:33
Message-ID: 201003231603.33656.LuHe () gmx ! at
[Download RAW message or body]

Hello,

this seems to be a bug of matplotlib in versions < 0.98.6 (it started working 
in recent svn revisions)
I did not find a proper workaround, but this quick hack fixed it:

if not matplotlib.compare_versions(matplotlib.__version__,  '0.98.6svn'):
   self.resize(self.size().width()+1, self.size().height()+1)
   self.resize(self.size().width()-1, self.size().height()-1)

(put this somewhere after you call show() on your widget (QTabWidget, 
QDialog))

Greetings,
Lukas


Am Dienstag 23 März 2010 15:19:33 schrieb Paul Catalani:
> Lukas,
> Did you ever find a workaround or a solution to having a separate plot on
> different tabs of a QTabWidget?
> Thanks,
> Paul
> 
> 
> Ref:
> http://www.riverbankcomputing.com/pipermail/pyqt/2009-July/023760.html

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic