From: Alejandro W. <ale...@ya...> - 2005-01-29 14:31:20
|
Hi : I hava a plot with mayor and minor ticks and formatters. I want to rotate the labels of both the mayor and minor ticks. I tried with the following code: #... ax.xaxis.set_major_locator(major) ax.xaxis.set_major_formatter(fmt_ma) ax.xaxis.set_minor_locator(minor) ax.xaxis.set_minor_formatter(fmt_mi) labels = ax.get_xticklabels() pylab.set(labels, rotation=30, fontsize=10) However, only the mayor labels are rotated. How can I rotate both the major and minor labels? Regards, Alejandro. __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com |