08-17-2012 11:30 AM
Hi all,
I have a scattergraph, 4 scatterplots and 1 vertical cursor. The 4 scatterplots are plotted in the scattergraph and they are plotted in the following way along x axis: I draw the first scatterplot, then the second, then the third and finally the fourth, for example, x axis for first plot ranges from 0 to 100, second plot ranges from 120 to 200, third plot ranges from 250 to 400 and finally, fourth plot ranges from 1000 to 2000. So What I want is move the vertical cursor along the X axis over all the plots drawn, that is, from 0 to 2000 and I cannot because I have associated first scatterplot to vertical cursor so I only can move the vertical cursor from 0 to 100 (as I have associated it to the first plot, it seems like vertical cursor bounds are 0 to 100), once I reach 100 with vertical cursor, I cannot move forward the vertical cursor to jump to the next (second) scatterplot and so on... to the third and then to the fourth to reach up to 2000 with the vertical cursor.
Please, could someone help me to achieve this? I highly appreciate it.
Thanks in advance.
PD.: I am using C# and Measurement Studio 8.6
09-07-2012 03:04 PM
There is not a built in way to jump between plots when hitting the edge of the data. But I did find a way using the AfterMoveCursor event to switch the cursor to the next plot when hitting the endpoint of the data. It gets a bit awkward if you want to place your cursor on the first or last data point in each plot, but other than that, it jumps around pretty well. I have attached the C# code.