Re: [Matplotlib-users] Update a contour plot

2009-09-30 Thread Ralph Kube
Hey Eric, > > The colorbar method or pyplot function optionally resizes the image axes > and uses the liberated space to make an axes for itself. For your > application, you don't want to use this option; you need to make the > axes object manually and use the cax kwarg to tell colorbar to us

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Eric Firing
Ralph Kube wrote: > Hey everybody, > thank you for your answers. I use matplotlib from qt4 now. What I do is > creating a widget in a gui and using this for plotting. The plot is to > refreshed by clicking on a button. This works perfectly fine, > until I start adding a colorbar to the plot. > When

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Ralph Kube
Hey everybody, thank you for your answers. I use matplotlib from qt4 now. What I do is creating a widget in a gui and using this for plotting. The plot is to refreshed by clicking on a button. This works perfectly fine, until I start adding a colorbar to the plot. When I add the colorbar and replot

Re: [Matplotlib-users] Update a contour plot

2009-09-29 Thread Matthias Michler
Hi Eric, I didn't intend to be faster or more memory saving than clearing the axes but to preserve the properties of the axes (like the label in my example). What are the advantages of using 'cla' instead of deleting old collections? Kind regards, Matthias PS: The following works as the previo

Re: [Matplotlib-users] Update a contour plot

2009-09-28 Thread John [H2O]
Ralph Kube-2 wrote: > > > Is there an > easy way out? > > Well, you could just script it and create .png files I do it all the time. -- View this message in context: http://www.nabble.com/Update-a-contour-plot-tp25648878p25653140.html Sent from the matplotlib - users mailing list arc

Re: [Matplotlib-users] Update a contour plot

2009-09-28 Thread Eric Firing
Matthias Michler wrote: > Hi Ralph, > > I don't think there exists a function like the line-'set_data'-method for > collections, which are generated by 'contour'. This particular method of > lines only changes the data but leave anything else unchanged. > I attached an easy approach of updating

[Matplotlib-users] Update a contour plot

2009-09-28 Thread Ralph Kube
Hi, is there a way to update a contour plot? I need to display a series of contour plots from a directory with data files and want to view them consecutively, preferrably without building a gui for it. Is there an easy way out? Cheers, Ralph --

Re: [Matplotlib-users] Update a contour plot

2009-09-28 Thread Matthias Michler
Hi Ralph, I don't think there exists a function like the line-'set_data'-method for collections, which are generated by 'contour'. This particular method of lines only changes the data but leave anything else unchanged. I attached an easy approach of updating a contour plot (simply deleting old

[Matplotlib-users] Update a contour plot

2009-09-28 Thread Ralph Kube
Hi, is there a way to update a contour plot? I need to display a series of contour plots from a directory with data files and want to view them consecutively, preferrably without building a gui for it. Is there an easy way out? Cheers, Ralph --