Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-21 Thread Sandro Tosi
forwarded 585442 matplotlib-devel@lists.sourceforge.net thanks Hello Matplotlib developers, here below is a report a user of maplotlib sent to the Debian bug tracker. I've verified and it happend also with 0.99.3: $ python -c "import matplotlib as p ; print p.__version__" 0.99.3 $ python mpl_cras

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-21 Thread Ryan May
I can reproduce here on Gentoo, both with 0.99.3 and SVN trunk. Trunk has the following warnings: /home/rmay/.local/lib/python2.6/site-packages/matplotlib/axes.py:2305: UserWarning: Attempting to set identical xmin==xmax results in singular transformations; automatically expanding. xmin=0, xmax=

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-21 Thread Eric Firing
On 06/21/2010 12:24 PM, Sandro Tosi wrote: > forwarded 585442 matplotlib-devel@lists.sourceforge.net > thanks > > Hello Matplotlib developers, > here below is a report a user of maplotlib sent to the Debian bug > tracker. I've verified and it happend also with 0.99.3: > > $ python -c "import matplo

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-22 Thread Michael Droettboom
In r8454, I have a applied a fix that allows this C++ exception to correctly percolate to the Python side -- the user will still get an exception, but it will be a Python exception and the interpreter itself does not crash. (It used to work, but recent changes to CXX caused it to break.) I h

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-22 Thread Michael Droettboom
Hold off, actually. This patch seems to have broken some thing inadvertently. Stay tuned... Mike On 06/22/2010 12:05 PM, Michael Droettboom wrote: In r8454, I have a applied a fix that allows this C++ exception to correctly percolate to the Python side -- the user will still get an exceptio

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-22 Thread Michael Droettboom
Ok. Attached is a corrected patch. Mike On 06/22/2010 12:26 PM, Michael Droettboom wrote: Hold off, actually. This patch seems to have broken some thing inadvertently. Stay tuned... Mike On 06/22/2010 12:05 PM, Michael Droettboom wrote: In r8454, I have a applied a fix that allows this C+

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-22 Thread Michael Droettboom
SVN r8456 has a patch for the slowness Eric described when doing extreme magnification on an image. Unfortunately, this fix paves over the exception fixed earlier. Rather than getting an exception when the magnification is too high, it now silently just doesn't draw the image. I'm trying to

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-22 Thread Eric Firing
On 06/22/2010 10:11 AM, Michael Droettboom wrote: > SVN r8456 has a patch for the slowness Eric described when doing extreme > magnification on an image. Excellent! > > Unfortunately, this fix paves over the exception fixed earlier. Rather > than getting an exception when the magnification is too

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-23 Thread Michael Droettboom
On 06/22/2010 06:56 PM, Eric Firing wrote: > >> Unfortunately, this fix paves over the exception fixed earlier. Rather >> than getting an exception when the magnification is too high, it now >> silently just doesn't draw the image. I'm trying to figure out what the >> threshold is beyond which it f

Re: [matplotlib-devel] [Python-modules-team] Bug#585442: python-matplotlib: crashes when calling axis() after imshow()

2010-06-23 Thread Michael Droettboom
SVN r8457 has what I think is an ideal solution. Unbeknownst to me, the clipping I added to speed up rendering of highly magnified images was being done in integers. Agg does provide an option to do this in doubles, and using that seems to prevent the image from disappearing. It even renders