Trouble with reading 2d array

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.

Ben Root


On Wed, Aug 31, 2011 at 3:50 PM, Alexa Villaume <alexa7890@…287…> wrote:

41, 25