contour question

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(Z2-Z1, 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,Z2-Z1,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)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124