Hi all,

I’m relatively new to matplotlib and what I’ll ask to you seems to be simple but I just can’t figure out how to do this. I’d like to change the origin of my coordinate system to the upper left of my axis when I plot my figures. In matlab I use axis(‘ij’) but in matplotlib I couldn’t find something similar. How will I do this ?

Thank you for your help,

Jaonary

I am not 100% sure what you are asking and I don't have a matlab

install handy to test. If you want to plot a decreasing scale on the

y-axis, that is easy, just invert the min and max args to the ylim

ax.set_ylim(ymax, ymin)

If you want to do something more sophisticated, please describe in

detail and then I may have to tell you it is not currently supported

JDH

## ···

On Dec 3, 2007 7:50 AM, Jaonary Rabarisoa <jaonary@...287...> wrote:

Hi all,

I'm relatively new to matplotlib and what I'll ask to you seems to be simple

but I just can't figure out how to do this. I'd like to change the origin of

my coordinate system to the upper left of my axis when I plot my figures.

In matlab I use axis('ij') but in matplotlib I couldn't find something

similar. How will I do this ?

In fact, that’s what I wanted to do : put the origine of my axis on le upper left corner of my axis

with the values of y increase from top to bottom. And the tip you gave (set_ylim) do it kindly.

Thank you again for your help.

Jaonary

## ···

On Dec 4, 2007 4:22 AM, John Hunter <jdh2358@…287…> wrote:

On Dec 3, 2007 7:50 AM, Jaonary Rabarisoa <jaonary@…287…> wrote:

Hi all,

I’m relatively new to matplotlib and what I’ll ask to you seems to be simple

but I just can’t figure out how to do this. I’d like to change the origin of

my coordinate system to the upper left of my axis when I plot my figures.

In matlab I use axis(‘ij’) but in matplotlib I couldn’t find something

similar. How will I do this ?

I am not 100% sure what you are asking and I don’t have a matlab

install handy to test. If you want to plot a decreasing scale on the

y-axis, that is easy, just invert the min and max args to the ylim

ax.set_ylim(ymax, ymin)

If you want to do something more sophisticated, please describe in

detail and then I may have to tell you it is not currently supported

JDH