Hi,

I have some troubles updating a contour plot. I reduced my code to a simple 
example to reproduce the problem: 

[code]
from pylab *
import scipy as sp

x=sp.arange(0,2*sp.pi,0.1)
X,Y=sp.meshgrid(x,x)
f1=sp.sin(X)+sp.sin(Y)
f2=sp.cos(X)+sp.cos(Y)

figure()
C=contourf(f1)
show()

C.set_array(f2)
draw()
[\code]

The problem is that C.set_array(f2) does not show any effect, not even after I 
call draw(). Shouldn't the array f2 be displayed after that? In comparison, the 
following code using imshow instead of contour works well:

[code]
figure()
I=imshow(f1)
show()
I.set_data(f2)
draw()
[\code]

What do I need to do to update an existing contour plot with new data?

Greetings
Johannes

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to