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

2009-07-18 Thread Lukas Hetzenecker
Hello, I tried to embed a Matplotlib FigureCanvas into a QTabWidget. But at the first start of my script - the main.py in the attatched example - the widget in the Tab is incorrectly sized. If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I put it in a QWidget it is shown

Re: [Matplotlib-users] plotting problems in qt4agg backend on Mac OS X

2009-07-18 Thread jan_strube
Hi Jouni, Jouni K. Seppänen wrote: > > jan_strube writes: > > Do you mean that saving as pdf from the qt4agg backend causes the same > error, or is there a different error raised from that particular > backend? When you save as pdf, you (usually) invoke the pdf backend, no > matter what inter

Re: [Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-18 Thread John [H2O]
Below is what I am trying to do, perhaps I am doing something wrong somewhere? John Hunter-4 wrote: > > > or explicitly reuse the same fig by giving a figure number and clearing > it: > > for i in range(1000): > fig = plt.figure(1) > # plot something > fig.cla() > > JDH > My Pr

Re: [Matplotlib-users] plotting problems in qt4agg backend on Mac OS X

2009-07-18 Thread Jouni K . Seppänen
jan_strube writes: > File > "/home/jstrube/local//lib64/python2.6/site-packages/matplotlib/backends/backend_pdf.py", > line 1723, in _fillp > (len(self._fillcolor) <= 3 or self._fillcolor[3] != 0.0)) > TypeError: object of type 'NoneType' has no len() Yes, that looks like a bug. It seems t