Hi

I am having problems with contourf(). Suppose I have two 10X30 arrays X,Y and a corresponding Z value array. How do I make the upper left to be the origin? I cannot use contour (Z,origin='upper') because the axis values gets messed up.

Thanks

Mitra

R. Mitra wrote:

Hi

I am having problems with contourf(). Suppose I have two 10X30 arrays X,Y and a corresponding Z value array. How do I make the upper left to be the origin? I cannot use contour (Z,origin='upper') because the axis values gets messed up.

It sounds like maybe you want to reverse the y-axis. Try something like plt.gca().invert_yaxis() after your call to contourf.

Eric