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