If I draw two images with imshow, then set_zorder for one of them to be
higher than the other, should that one be the one that displays?
for example, with
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)
Z = Z2-Z1 # difference of Gaussians
im2 = imshow(Z2, interpolation='bilinear', cmap=cm.gray,
origin='lower', extent=[-3,3,-3,3])
im2.set_zorder(2)
im1 = imshow(Z1, interpolation='bilinear', cmap=cm.gray,
origin='lower', extent=[-3,3,-3,3])
im1.set_zorder(1)
show()
I expected Z2 to be plotted, but I actually see Z1. In fact, I always
see the last one that was plotted, regardless of what I set the zorder to.
I'm using the latest SVN, with GTKAgg.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED]
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users