Re: [Matplotlib-users] dynamically updated plots

2008-07-13 Thread Lubos Vrbka
hi, > 1. Would it be possible to do only shallow copy of the arrays that are > being plotted so that on redrawing the figure, chanes in the datasets > would be picked up automatically? If not, is Line2D.set_data(...) the > right approach? isn't this the way how the plotting is done? in my experien

Re: [Matplotlib-users] keeping axis settings while adding data

2008-07-07 Thread Lubos Vrbka
hello, > why is it actually not possible to do something like the following piece > of code? > ioff() > plot commands > draw() > ion() actually, i did some test now (modification of the example http://www.scipy.org/Cookbook/Matplotlib/Animations site): from pylab import * ioff() x = arange(0,2*

Re: [Matplotlib-users] keeping axis settings while adding data

2008-07-07 Thread Lubos Vrbka
hi, > you can avoid (auto-)rescaling in matplotlib: > --- > import pylab > ax = pylab.subplot(111, autoscale_on=False) > # or for an already existing axes instance 'ax' : ax.set_autoscale_on(False)

[Matplotlib-users] keeping axis settings while adding data

2008-07-07 Thread Lubos Vrbka
hi guys, is it somehow possible to force matplotlib (pylab) not to rescale the axes while adding some data to an existing plot? currently i have to do in a cycle (simplified example): for (all data): p_U_ij.append(pylab.plot(r, data) pylab.xlim((0, 10)) pylab.ylim((-5,

[Matplotlib-users] switching between noninteractive and interactive plot?

2008-06-20 Thread Lubos Vrbka
hi guys, my problem is probably simple, but i wasn't able to solve it. i use matplotlib with scipy/numpy (i.e., via pylab). in my program, i'd like to display interactively the convergence of a mathematical procedure. in my case this means that i have to display graphs of cca 12 functions (some th