Re: [Matplotlib-users] How to ask a Figure whether the zoom was manually changed?

2010-07-06 Thread Ryan May
2010/7/6 Václav Šmilauer : > Hello, > > I have a simple live-update thread (basically calls set_xdata and > set_ydata on all lines with the new data, then calls canvas.draw() on > all figures). > > 1. I would like to zoom the figure to contain the whole data range after > each update, but ONLY in c

Re: [Matplotlib-users] How to ask a Figure whether the zoom was manually changed?

2010-07-06 Thread Benjamin Root
Well, as far as I can tell, all zooms are manual unless done explicitly through the code (maybe you meant a situation where a window resize triggers a change in the data limits?) Anyway, you might want to look at some of the set_aspect() options. Also, in the latest version (1.0), we have made so

[Matplotlib-users] How to ask a Figure whether the zoom was manually changed?

2010-07-06 Thread Václav Šmilauer
Hello, I have a simple live-update thread (basically calls set_xdata and set_ydata on all lines with the new data, then calls canvas.draw() on all figures). 1. I would like to zoom the figure to contain the whole data range after each update, but ONLY in case the figure zoom was not changed manua