Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Jae-Joon Lee
Please see if this PR works. https://github.com/matplotlib/matplotlib/pull/689 Regards, -JJ On Mon, Jan 30, 2012 at 1:03 PM, Jae-Joon Lee wrote: > On Mon, Jan 30, 2012 at 5:26 AM, Jeff Whitaker wrote: >> unless matplotlib takes into account all the artist >> objects associated with a figure.

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Jae-Joon Lee
On Mon, Jan 30, 2012 at 5:26 AM, Jeff Whitaker wrote: > unless matplotlib takes into account all the artist > objects associated with a figure. My primary reason behind not accounting all the artists was that, in general, Matplotlib does not know the exact bounding box of artists when the artists

Re: [matplotlib-devel] All information about SF-filed bugs is inaccessible at SF

2012-01-29 Thread Fernando Perez
Hi Eric, On Sun, Jan 29, 2012 at 1:35 PM, Eric Firing wrote: > Yes, this became evident right away after the transition; in addition, > there was a coordination glitch such that quite a few bugs that I had > closed on SF, trying to clear out some junk before the transition, ended > up getting res

Re: [matplotlib-devel] All information about SF-filed bugs is inaccessible at SF

2012-01-29 Thread Eric Firing
On 01/29/2012 10:53 AM, Fernando Perez wrote: > Hi all, > > I don't know if you guys were aware of this, and if there's anything > that can be done, but I just realized that all the bugs tagged SF: Fernando, Yes, this became evident right away after the transition; in addition, there was a coord

[matplotlib-devel] All information about SF-filed bugs is inaccessible at SF

2012-01-29 Thread Fernando Perez
Hi all, I don't know if you guys were aware of this, and if there's anything that can be done, but I just realized that all the bugs tagged SF: https://github.com/matplotlib/matplotlib/issues?labels=SF&sort=created&direction=desc&state=open&page=1 have useless links to their SF original pages, b

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Fernando Perez
On Sun, Jan 29, 2012 at 12:26 PM, Jeff Whitaker wrote: >  From matplotlib's perspective, the lat/lon labels in Basemap are > randomly located text objects - so it's not likely to ever work for > Basemap plots unless matplotlib takes into account all the artist > objects associated with a figure.

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Jeff Whitaker
On 1/29/12 11:30 AM, Fernando Perez wrote: > On Sun, Jan 29, 2012 at 10:22 AM, Nathaniel Smith wrote: >>> Not a bug. There are only so many artist objects we assume for determining >>> the tight bbox. Suptitle is not one of them. >> Why is this the desired behavior? > I was just going to ask th

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Fernando Perez
On Sun, Jan 29, 2012 at 11:25 AM, Benjamin Root wrote: > I certainly have no objections. Most likely it was an oversight. OK, thanks. Filed so at least there's a record of it: https://github.com/matplotlib/matplotlib/issues/688 We'll find a workaround in ipython in the meantime. Cheers, f -

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Benjamin Root
On Sunday, January 29, 2012, Fernando Perez wrote: > On Sun, Jan 29, 2012 at 10:22 AM, Nathaniel Smith wrote: >>> Not a bug. There are only so many artist objects we assume for determining the tight bbox. Suptitle is not one of them. >> >> Why is this the desired behavior? > > I was just going

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Fernando Perez
On Sun, Jan 29, 2012 at 10:30 AM, Fernando Perez wrote: > And as Jeff Whitaker points out, > all x and  y (longitude/latitude) labels also get clipped. I meant to put at the end of that sentence: "in the basemap example". The simple plot has no clipping issues with labels, only with the suptitle.

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Nathaniel Smith
On Sun, Jan 29, 2012 at 7:42 AM, Benjamin Root wrote: > Not a bug.  There are only so many artist objects we assume for determining > the tight bbox.  Suptitle is not one of them. Why is this the desired behavior? -- Nathaniel ---

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Fernando Perez
On Sun, Jan 29, 2012 at 10:22 AM, Nathaniel Smith wrote: >> Not a bug.  There are only so many artist objects we assume for determining >> the tight bbox.  Suptitle is not one of them. > > Why is this the desired behavior? I was just going to ask the same. And as Jeff Whitaker points out, all

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Jeff Whitaker
On 1/29/12 8:42 AM, Benjamin Root wrote: On Sunday, January 29, 2012, Fernando Perez > wrote: > Hi all, > > in ipython for the qtconsole and notebook, we send inline figures using > > fig.canvas.print_figure(bytes_io, format=fmt, bbox_inches='tight') > > as seen he

Re: [matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Benjamin Root
On Sunday, January 29, 2012, Fernando Perez wrote: > Hi all, > > in ipython for the qtconsole and notebook, we send inline figures using > > fig.canvas.print_figure(bytes_io, format=fmt, bbox_inches='tight') > > as seen here: > > https://github.com/ipython/ipython/blob/master/IPython/core/pylabtoo

[matplotlib-devel] Bug in print_figure with bbox_inches='tight'? Plots in ipython notebook losing titles and labels...

2012-01-29 Thread Fernando Perez
Hi all, in ipython for the qtconsole and notebook, we send inline figures using fig.canvas.print_figure(bytes_io, format=fmt, bbox_inches='tight') as seen here: https://github.com/ipython/ipython/blob/master/IPython/core/pylabtools.py#L104 However, this produces truncated figure titles. Consi