I posted about this problem on another forum (with an image attachment)
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)
fname = 'pic.png'
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!