## matplotlib-users

 [Matplotlib-users] Newbie question - rotated XY chart From: greg7201 - 2008-09-25 01:04:28 ```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. ```
 Re: [Matplotlib-users] Newbie question - rotated XY chart From: John Hunter - 2008-09-25 02:08:31 ```On Wed, Sep 24, 2008 at 8:04 PM, greg7201 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. 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 ```
 Re: [Matplotlib-users] Newbie question - rotated XY chart From: greg7201 - 2008-09-25 02:36:05 ```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@... 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. ```