Wow, right there in the FAQ. That worked great! Thanks for kindly pointing me in the right direction.
Andy On Tue, Mar 24, 2009 at 10:56 AM, Jae-Joon Lee <lee.j.j...@gmail.com> wrote: > http://matplotlib.sourceforge.net/faq/howto_faq.html#move-the-edge-of-an-axes-to-make-room-for-tick-labels > > something like "fig.subplots_adjust(left=0.2)" would work. > > -JJ > > > > On Tue, Mar 24, 2009 at 11:43 AM, Andy Yates <newsp...@gmail.com> wrote: >> I am trying to generate plots where the y-axis major tick labels are >> date/times. My tick labels are getting cut off. How can I set a >> larger area on the left to allow room for my entire date time stamps? >> >> fig = Figure() >> canvas = FigureCanvas(fig) >> ax = fig.add_subplot(111) >> ax.plot(x,y) >> ax.set_title('Gamma Ray') >> ax.grid(True) >> ax.set_xlabel('counts/sec') >> ax.set_ylabel('time') >> formatter = dates.DateFormatter('%Y-%m-%d %H:%M') >> ax.yaxis.set_major_formatter(formatter) >> ax.yaxis.set_major_locator( MinuteLocator( interval=5 ) ) >> >> fig.set_size_inches( (10, 10) ) >> filename = settings.MEDIA_ROOT + '/images/test1.png' >> fig.savefig(filename) >> >> >> Thanks! >> Andy >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users