All of the text commands "text", "xlabel", "ylabel", "title" take a
rotation keyword argument, so you can pass that in and set the angle
you want. With an existing text instance, you can call the
set_rotation method.
Here is a demo that shows some of the rotation modes
I want to have the text on the x-axes rotated, but only for subplot A and
B
The text for subplot C should remain unrotated.
All of the text commands "text", "xlabel", "ylabel", "title" take a
rotation keyword argument, so you can pass that in and set the angle
you want. With an existing text instance, you can call the
set_rotation method.
I'm afraid, I made myself not clear enough.
I want to rotate the numbers on the axis (similar to what autofmt_xdate() is
doing).
As I understand, autofmt_xdate() is changing the rotation of the numbers for
all sub-plots.
But I want to do it only for selected subplots.
Is that is possible?
···
On Tue, Aug 3, 2010 at 6:23 AM, thowa <thorsten@...3224...> wrote:
I'm afraid, I made myself not clear enough.
I want to rotate the numbers on the axis (similar to what autofmt_xdate()
is doing).
As I understand, autofmt_xdate() is changing the rotation of the numbers
for all sub-plots.
But I want to do it only for selected subplots.
Is that is possible?
I have realized, that it is possible.
e.g. by using
for label in ax.get_xticklabels():
label.set_rotation(45)
label.set_horizontalalignment('right')
JDH
···
On Wed, Aug 4, 2010 at 6:27 AM, thowa <thorsten@...3224...> wrote:
I'm afraid, I made myself not clear enough.
I want to rotate the numbers on the axis (similar to what autofmt_xdate() is
doing).
As I understand, autofmt_xdate() is changing the rotation of the numbers for
all sub-plots.
But I want to do it only for selected subplots.