On Wed, Mar 28, 2012 at 2:36 PM, John Hunter wrote:
>
>
> On Wed, Mar 28, 2012 at 1:22 PM, Neal Becker wrote:
>
>>
>> > import matplotlib
>> > matplotlib.use('pdf')
>> >
>> > It looks like you are inadvertently importing the qt library in a
>> headless
>> > script run.
>> >
>> > JDH
>>
>> Thanks
On Wed, Mar 28, 2012 at 1:22 PM, Neal Becker wrote:
>
> > import matplotlib
> > matplotlib.use('pdf')
> >
> > It looks like you are inadvertently importing the qt library in a
> headless
> > script run.
> >
> > JDH
>
> Thanks, but should that cause a (scary looking) error? Or is there a real
> p
John Hunter wrote:
> On Wed, Mar 28, 2012 at 8:57 AM, Neal Becker
> wrote:
>
>> qt-x11-4.8.0-7.fc16.x86_64
>> PyQt4-4.8.6-1.fc16.x86_64
>>
>> But interestingly, I'm not actually using the display in this script. I'm
>> using
>> pdfpages.
>
>
> At the beginning of your script (before importing
On Wed, Mar 28, 2012 at 8:57 AM, Neal Becker wrote:
> qt-x11-4.8.0-7.fc16.x86_64
> PyQt4-4.8.6-1.fc16.x86_64
>
> But interestingly, I'm not actually using the display in this script. I'm
> using
> pdfpages.
At the beginning of your script (before importing pylab/pyplot) you should
be doing
im
qt-x11-4.8.0-7.fc16.x86_64
PyQt4-4.8.6-1.fc16.x86_64
But interestingly, I'm not actually using the display in this script. I'm
using
pdfpages.
The basic outline is:
At the start:
from matplotlib.backends.backend_pdf import PdfPages
self.pdf = PdfPages(file_name)
Then at the s
Can you provide more detail about how to reproduce this?
I can deduce you're using the Qt4Agg backend -- but running
simple_plot.py, zooming around, and then closing the window does not
seem to reproduce the error here.
What version of Qt/PyQt/PySide are you running. What platform?
Mike
On 0
I'm getting these messages, which did not occur with 1.1:
Traceback (most recent call last):
File "/home/nbecker/.local/lib/python2.7/site-
packages/matplotlib/backends/backend_qt4.py", line 151, in
lambda: self.close_event())
File "/home/nbecker/.local/lib/python2.7/site-
packages/matplo