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 > the spectrum and trying to correlate them with things such as the gain > and filter changes etc. > > On the application I have a number of radio buttons, when clicked will > add a scatter plot of the datapoints but color coded by the item of > interest. > i.e. > click the gain btn I end up with the line plot, and each data point has > a color coded dot whose color is keyed to the gain the data point was > taken at. > click the filter btn I remove the gain scatter plot, and add a filter > scatter plot where each data point is color coded with the filter used. > > This functionality work fine. > > 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) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users