Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-25 Thread John Hunter
On Fri, Jun 20, 2008 at 9:32 PM, David Warde-Farley <[EMAIL PROTECTED]> wrote: > Thanks again for the help. I was wondering about the code you posted -- > what's the problem with say, using bbox.xmin to adjust left only once? Or > else perhaps get_text_width_height from the renderer? Wouldn't tha

Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-21 Thread David Warde-Farley
On 19-Jun-08, at 11:30 AM, John Hunter wrote: > On Wed, Jun 18, 2008 at 2:42 PM, David Warde-Farley <[EMAIL PROTECTED] > > wrote: > >> One more related thing: is there any way to retrieve the size of a >> textbox >> in figure coordinates, something like >> ax.get_ymajorticklabels[0].get_width(

Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-19 Thread John Hunter
On Wed, Jun 18, 2008 at 2:42 PM, David Warde-Farley <[EMAIL PROTECTED]> wrote: > One more related thing: is there any way to retrieve the size of a textbox > in figure coordinates, something like > ax.get_ymajorticklabels[0].get_width()? This is not very easy since the renderer is not known until

Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-18 Thread David Warde-Farley
On 18-Jun-08, at 3:17 PM, John Hunter wrote: > If you are using subplots, you can move them over using > > fig = figure() > fig.subplots_adjust(left=0.2) Works like a charm! Thanks. One more related thing: is there any way to retrieve the size of a textbox in figure coordinates, something

Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-18 Thread John Hunter
On Wed, Jun 18, 2008 at 1:54 PM, David Warde-Farley <[EMAIL PROTECTED]> wrote: > Hi folks, > > I'm using 'yticks' to set labels on the y axis, unfortunately they're > rather long strings occasionally. I was wondering if there's a way to > tweak the position of the axes within the plot, or better ye