On Wed, Aug 31, 2011 at 3:50 PM, Alexa Villaume <alexa7890@gmail.com> wrote:

Yes, you have it backwards. The first axis of O3 is the rows, while the second axis is the columns. Keep in mind that Python and NumPy follow C array conventions while Matlab (and IDL?) follow Fortran array conventions.

So, either transpose O3, or swap x and y in the call to contourf.

Cheers!

Ben Root

41, 25

Yes, you have it backwards. The first axis of O3 is the rows, while the second axis is the columns. Keep in mind that Python and NumPy follow C array conventions while Matlab (and IDL?) follow Fortran array conventions.

So, either transpose O3, or swap x and y in the call to contourf.

Cheers!

Ben Root