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.
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).
I am wondering how can I add the scatter plot, without changing the current view (zoom level) that I am currently using, but still add all the scatter plot data?
Any suggestions gratefully accepted.