Newbie question - rotated XY chart

I am such a matplotlib newbie... but it looks very cool.

I need to create a basic graph, EXCEPT the x axis needs to go down the page,
and the y axis is across the bottom. (The chart is to display drilling
information and the norm for drilling engineers is to display depth - the x
axis - down the left side of graphs).

Can matplotlib do this? Just point me in the right direction... I'll figure
it out.

Thanks in advance...

···


View this message in context: http://www.nabble.com/Newbie-question---rotated-XY-chart-tp19661397p19661397.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Starting with the obvious -- x and y are arbitrary, so instead of

   plot (x, y)

you can

  plot(y, x)

If you need the data to be descending (smaller values on top, larger
values on bottom) you can invert the normal ordering with

  ylim(big_value, small_value)

If neither of these is what you are looking for, please elaborate a bit.

JDH

···

On Wed, Sep 24, 2008 at 8:04 PM, greg7201 <gregbox515-junk08@...9...> wrote:

I am such a matplotlib newbie... but it looks very cool.

I need to create a basic graph, EXCEPT the x axis needs to go down the page,
and the y axis is across the bottom. (The chart is to display drilling
information and the norm for drilling engineers is to display depth - the x
axis - down the left side of graphs).

Can matplotlib do this? Just point me in the right direction... I'll figure
it out.

That does the trick. I assumed that swaping the plot parameters would cause
other problems, but it doesn't.

That was simple!

Thanks!

Starting with the obvious -- x and y are arbitrary, so instead of

   plot (x, y)

you can

  plot(y, x)

If you need the data to be descending (smaller values on top, larger
values on bottom) you can invert the normal ordering with

  ylim(big_value, small_value)

If neither of these is what you are looking for, please elaborate a bit.

JDH

···

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


View this message in context: http://www.nabble.com/Newbie-question---rotated-XY-chart-tp19661397p19662093.html
Sent from the matplotlib - users mailing list archive at Nabble.com.