[IPython-dev] Maptlotlib Contour Issue (Bug?) with IPython Notebook

Phil Elson pelson.pub@gmail....
Mon Apr 22 03:10:13 CDT 2013

I've just submitted a fix for this problem at
https://github.com/matplotlib/matplotlib/pull/1929. It was reproducible
without IPython if you add the line:

plt.savefig('test.png', bbox_inches='tight')

Interestingly though, there was no error message being shown by IPython,
which I'm guessing was being suppressed by the try..finally on ~L104 of
IPython.kernel.zmq.pylab.backend_inline - I wonder if any exceptions which
get caught there should be displayed on the notebook. That would certainly
have helped in this case.



On 22 April 2013 05:36, Bradley M. Froehle <brad.froehle@gmail.com> wrote:

> Apologies, git bisect led me astray... I think the actual regression was
> introduced in:
> b8bc21f4a5854a1cb5778b9ee1db41e1d352948a is the first bad commit<https://github.com/matplotlib/matplotlib/commit/b8bc21f4a5854a1cb5778b9ee1db41e1d352948a>
> commit b8bc21f4a5854a1cb5778b9ee1db41e1d352948a
> Author: Phil Elson <pelson.pub@gmail.com>
> Date:   Wed Mar 13 13:47:17 2013 +0000
>     bbox_inches=tight support for *all* figure artists.
> :100644 100644 da3c6434a7aad793a86c118f992d0ffcd0a2eb03
> 0a84c2d30d199128926d871c88383e48d1dac5eb M .travis.yml
> :040000 040000 f350144dddd930bc353985ba79e6bf090fdb6e7c
> b0f96dce7f8cb39c54202e7a08bc74675fad2e6a M lib
>  On Sun, Apr 21, 2013 at 8:02 PM, Patrick Marsh <patrickmarshwx@gmail.com>wrote:
>>> Greetings,
>>> Below is a link to an IPython Notebook instance that tries to do a
>>> simple contour plot. Unfortunately, I can't get a contour plot to actually
>>> appear. If I do a pcolormesh plot, that works...so it isn't a display
>>> issue. Furthermore, if one takes the code in the first cell of the notebook
>>> below, it will work if pasted into an IPython console.
>>> I'm currently running the latest (HEAD) for both Matplotlib and IPython.
>>> http://nbviewer.ipython.org/5432157
>>> The above notebook was generated on a Mac.
>>> Any ideas?
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130422/64f1e931/attachment.html 

More information about the IPython-dev mailing list