Hello all,

I posted about this problem on another forum (with an image attachment)

http://python-forum.org/pythonforum/viewtopic.php?f=18&t=21951&p=99290#p99290

In the figure below white space that forms a trapezoid to the right

(slope then constant) and tear-shape white space to the left (due to

maxZ being too small) are expected and I have no issues with that.

The weird things are the sharp white shapes to the left. They are very

irregular and with a little different change in parameters they appear

at different places.

Below are the relevant pieces of code

Code: Select all

import matplotlib.pyplot as plt

import matplotlib.colors as colors

...

z = numpy.transpose(z)

z = numpy.ma.masked_where(z<=0, z)

levels = numpy.linspace(0,maxZ,50)

cset1=plt.contourf(x,y,z,levels,cmap=plt.get_cmap('jet',len(levels)-1))

plt.colorbar(cset1)

fname = 'pic.png'

plt.savefig(fname)

Above, z is the 2D array of values for different x and y (both lists

have 400 elements each).

Ths is really really confusing me. Any help is greatly appreciated!