Figure.tight_layout() is a correct way. Do you see that error only when you use Figure.tight_plot (and not when you use plt.tight_layout)?
What happen you try the script below. import matplotlib.pyplot as plt fig = plt.figure(1)ax = fig.add_subplot(111)fig.tight_layout() Regards, -JJ On Sat, Oct 15, 2011 at 9:13 AM, C M <cmpyt...@gmail.com> wrote: > Just trying out the latest mpl 1.1.0 and the tight_layout() method. I saw > the guide written about it, but am a unsure how to use this when using the > OO approach to using Matplotlib. > > When using pyplot, the method is: plt.tight_layout(). When using the OO > form of mpl, is it: figure.tight_layout() ? > > I assume it is, because I tried this and it didn't give me a name error, but > I did get an error: ValueError: left cannot be >= right. > > What am I doing wrong? > > Thanks, > Che > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users