[PyQt] [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

Lukas Hetzenecker LuHe at gmx.at
Tue Mar 23 15:03:33 GMT 2010


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



More information about the PyQt mailing list