On Tue, Aug 3, 2010 at 6:23 AM, thowa <thors...@foren.walenzyk.de> wrote:
>
> Hi,
>
> I'm pretty new to Matplotlib and I'm really impressed about the
> possibilities !!!
> GREAT WORK !!!
>
> I have a figure with 3 subplots like this.
>
> *-------*    *------------------------------*
> |          |     |                                          |
> |    A    |     |                                          |
> |          |     |                                          |
> *-------*    |                                          |
>                 |                     C                     |
> *-------*    |                                          |
> |          |     |                                          |
> |    B    |     |                                          |
> |          |     |                                          |
> *-------*    *------------------------------*
>
> 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.

Here is a demo that shows some of the rotation modes

http://matplotlib.sourceforge.net/examples/pylab_examples/alignment_test.html

http://matplotlib.sourceforge.net/examples/pylab_examples/demo_text_rotation_mode.html

JDH

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to