Rotated plot

Jos?> Greetings! In a figure I'm generating, I need to plot a
    Jos?> function rotated 90 degrees counter-clockwise, so that
    Jos?> x-axis is vertical, and y-axis is horizontal (increasing
    Jos?> from right to left). I searched the documentation and the
    Jos?> examples and couldn't find how (what I tried didn't
    Jos?> work). Probably there is a simple way to do that, if
    Jos?> somebody can point that out, I would really appreciate. :slight_smile:

Perhaps you can be a little more specific about what you want to do.
For a "plot", all you need to do is reverse the x and y arguments
and place your xlabel and ylabel accordingly.

  plot(y, x)

I could probably give you more help if you describe what you need in
addition this.

For a bar chart, use barh.

For printing, some backends (eg postscript) support landscape mode

    savefig(fname, orientation='landscape'):



Perhaps you can be a little more specific about what you want to do.

I think that a 'picture' can help - in this case, I think fixed
fonts will really help understanding. I remember using some
command in Matlab to do this, but can't remember exactly what
it was, and I can't search the help because I uninstalled it.
What I need is, basically, this:

                            *| x
                   * |
             * |
         * |
       * |
      * |
y --------------------------+

  plot(y, x)

That, and setting the x_lim inverted, worked as I wanted, thanks.

But one more thing: while I was searching for a specific command
to do that, I found something (but not much) about transforms, which
I couldn't exactly understand what they do and how they work, but
they might be handy in the near future. What are they exactly, and
how can they help?


Jos� Alexandre Nalon