Re: [Matplotlib-users] How to set the data for an existing pcolormesh image?

2011-08-19 Thread Eric Firing
On 08/15/2011 11:10 PM, Till Stensitzki wrote:
 Hello,
 for a interactive gui program i want to change the shown data without changing
 the rest of the figure. For normal plots, there is a set_xdata/set_ydata
 methods. For QuadMesh, there is a set_array method, which i don't get to work.

You have to use ravel().  Illustrated with ipython -pylab:

xx = pcolormesh(rand(3,3))
xx.set_array(rand(3,3).ravel())
draw()
xx.set_array(rand(3,3).ravel())
draw()


Eric


 Thanks,
 Till

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] How to set the data for an existing pcolormesh image?

2011-08-16 Thread Till Stensitzki
Hello,
for a interactive gui program i want to change the shown data without changing
the rest of the figure. For normal plots, there is a set_xdata/set_ydata
methods. For QuadMesh, there is a set_array method, which i don't get to work.

Thanks,
Till


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users