[Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Stephen George
Hi, I have an application that draws a line plot of a spectrum. When the spectrum is collected different gains and filters may be used for each data point (which I have also collected). I am looking at artefacts in the spectrum and trying to correlate them with things such as the gain and

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Benjamin Root
Stephen, Most likely, the program isn't really going back to the original axes as much that it is automatically setting the axes to fit all the data from the new plot (which would likely be the original axes, but only by coincidence). I am sure there is some sort of easy way to do this, but the

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Ryan May
On Tue, Jun 22, 2010 at 8:56 PM, Stephen George steve_...@optusnet.com.au wrote: I have an application that draws a line plot of  a spectrum. When the spectrum is collected different gains and filters may be used for each data point (which I have also collected). I am looking at artefacts in

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Stephen George
However if I am zoomed in on my graph looking at detail, then click the radio button, the scatter plot forces the graph to resize to once again show the overall intial view (zoomed out). Try using: axes.set_autoscale_on(False) Thank you very much, this does exactly what I was