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

2008-07-09 Thread Ryan May
Lubos Vrbka wrote: 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 *

[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))

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

2008-07-07 Thread Matthias Michler
Hi lubos, 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)

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)

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 =