|
From: Peter G. <pgr...@ge...> - 2004-04-24 01:48:07
|
The pcolor_demo.py and pcolor_demo2.py show somewhat different results:
------------
from matplotlib.matlab import *
def fun3(x,y):
return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2)
xi=arange(-3.0, 3.0, 0.05)
yi=arange(-3.0, 3.0, 0.05)
[Xi,Yi]=meshgrid(xi,yi);
Zi=fun3(Xi,Yi)
if 1:
cMap = ColormapJet(256)
imshow(Zi, cMap)
gca().set_image_extent(-3, 3, -3, 3)
else:
pcolor(Xi, Yi, Zi, shading='flat')
show()
-------------
The y axis seem to be inverted on imshow when compared to pcolor. Was
this intentional?
|