Hi, I made a plot where the values on the X-axis are dates, "JUN, JUL, AUG.. etc ". To make them fit better, I have rotated the text using setp(labels, rotation=45, size=8), the problem is that the text is "clipped" in bottom. How can I expand the boundries? Thanks !!
figure(num=1, figsize=(2,2)) #xlabel('Tid') ylabel('Temp', size=8) title('Frysertemperatur', size = 10) p = plot(dates, s) ax = subplot(111) ax.set_clip_on(False) ax.xaxis.set_major_locator(days) ax.xaxis.set_major_formatter(daysFmt) #ax.xaxis.set_minor_locator(hours) labels = ax.get_xticklabels() setp(labels, rotation=45, size=8) labels = ax.get_yticklabels() setp(labels, size=8) grid(True) savefig('simple_plot') show() Sincerely JFØ Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users