On Fri, Jul 9, 2010 at 10:49 AM, Johannes Röhrs wrote:
>
>
> Thanks a lot, this solutions seems to serve my purpose. A new method
> C.remove() would of course be even better.
>
> One could say the problem is solved, but why does there no method exist to
> update a contour plot as there is for ma
plot is much faster/more efficient than deleting and
recreating the plot.
- Original Message -
From: "Ryan May"
To: "Johannes Röhrs"
Cc: matplotlib-users@lists.sourceforge.net
Sent: Friday, 9 July, 2010 5:11:37 PM
Subject: Re: [Matplotlib-users] update an existing c
On Fri, Jul 9, 2010 at 6:28 AM, Johannes Röhrs wrote:
> 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)
> f
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