[matplotlib-devel] 1.1.1rc does not fix tight_layout for figtext?

2012-03-28 Thread Neal Becker
I just tried 1.1.1rc to see if it fixed the tight_layout for figtext. I have a semilogy plot, and add some lines of text on the bottom (and top): plt.figtext (0, 0, res['carriers'].values, horizontalalignment='left', verticalalignment='bottom', size=5) plt.figtext (0.5, 1, sel

[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

Re: [matplotlib-devel] 1.1.1rc does not fix tight_layout for figtext?

2012-03-28 Thread Jae-Joon Lee
I'm afraid that, unfortunately, it won't be fixed soon (if ever, as far as I can tell). What "tight_layout" does is to adjust the *subplot parameters* of the figure so that the "subplots" fit in. Artists created with figtext command is not affected by the subplot parameters, i.e. there is not much

Re: [matplotlib-devel] 1.1.1rc does not fix tight_layout for figtext?

2012-03-28 Thread Neal Becker
If I have to manually add room, I guess I might as well just keep using this, which I had used with version 1.1: fig.subplots_adjust(bottom=0.2) Jae-Joon Lee wrote: > I'm afraid that, unfortunately, it won't be fixed soon (if ever, as > far as I can tell). > What "tight_layout" does is to adjus

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

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 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
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 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

[matplotlib-devel] soliciting feedback on proposed user survey

2012-03-28 Thread Paul Ivanov
Hey everyone, with 1.1.1 just around the corner, I thought it'd be nice to put together an MPL user survey, similar to what Thomas Kluyver organized for IPython last year [1]. Here's what I've got so far [2], and here's the response one gets upon filling out the form: - Thanks for your feedb

Re: [matplotlib-devel] soliciting feedback on proposed user survey

2012-03-28 Thread Paul Ivanov
Paul Ivanov, on 2012-03-28 17:22, wrote: > Hey everyone, > > with 1.1.1 just around the corner, I thought it'd be nice to put > together an MPL user survey, similar to what Thomas Kluyver > organized for IPython last year [1]. > > Here's what I've got so far [2], and here's the response one gets