Hi all:
I was experimenting with the contour demo and discovered that the x and
y keyword arguments don't behave like I expect them to (i.e. they don't
behave as they do in pcolor).
For example:
from pylab import *
delta = 0.025
x = y = arange(3.0, 3.0, delta)
X, Y = meshgrid(x, y)
Z1 = bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
Z2 = bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
#levels, colls = contour(Z2Z1, x=X,y=Y,levels=6,
# linewidths=arange(.5, 4, .5),
# colors=('r', 'green', 'blue', (1,1,0),
'#afeeee', 0.5),
# origin='lower')
pcolor(X,Y,Z2Z1,shading='flat')
show()
plots the data with the x and y axes going from 3 to +3. Uncommenting
the contour call, the axes then are the same as the dimensions of the Z
array, regardless of whether the x=X, y=Y keyword args are given. In
other words, contour seems to ignore the x,y keywords. Am I missing
something?
Jeff

Jeffrey S. Whitaker Phone : (30the3)4976313
NOAA/OAR/CDC R/CDC1 FAX : (303)4976449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 803053328 Office: Skaggs Research Cntr 1D124
