Re: [matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-04-03 Thread Benjamin Root
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

Re: [matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-03-28 Thread John Hunter
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

Re: [matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-03-28 Thread Neal Becker
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

Re: [matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-03-28 Thread John Hunter
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

Re: [matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-03-28 Thread Neal Becker
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

Re: [matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-03-28 Thread Michael Droettboom
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

[matplotlib-devel] 1.1.1rc RuntimeError: underlying C/C++ object has been deleted

2012-03-28 Thread Neal Becker
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