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) > -------------------------------------------------------------------------------------------------------- this is exactly what i wanted, thanks!
> If you want to plot in background you have to skip interactive mode (up to my > knowledge). If you nevertheless would like to change the results you can use > pylab.show() as last line in your script and change you data via > event-control - something like: > -------------------------------------------------------------------------------------- > def function(event): > if event.key == "c": > pylab.cla() > elif event.key == "u": > # update the data > pass > pylab.connect("key_press_event", function) > pylab.show() > ---------------------------------------------------------------------------------------- i don't know if i understand this correctly, but i think i cannot use this approach. i need to update the plot several times during the script (showing progress of an iterative procedure) - but pylab.show() causes the program to halt (until the window is closed). why is it actually not possible to do something like the following piece of code? ioff() plot commands draw() ion() best, lubos -- Lubos [EMAIL PROTECTED]" http://www.lubos.vrbka.net ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users