From: Johan F. <jf...@me...> - 2006-06-23 11:12:34
|
Hi, I made a plot where the values on the X-axis are dates, "JUN, JUL, AUG.. et= c ". To make them fit better, I have rotated the text using setp(labels, rotation=3D45, size=3D8), the problem is that the text is "clipped" in bott= om. How can I expand the boundries? Thanks !! figure(num=3D1, figsize=3D(2,2)) #xlabel('Tid') ylabel('Temp', size=3D8) title('Frysertemperatur', size =3D 10) p =3D plot(dates, s) ax =3D 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 =3D ax.get_xticklabels() setp(labels, rotation=3D45, size=3D8) labels =3D ax.get_yticklabels() setp(labels, size=3D8) grid(True) savefig('simple_plot') show() Sincerely JF=D8 |