LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlay a graph onto another one without losing any cursor

I have 2 graphs that have differennt Y scales (but X scale is the same). Both graphs have cursors on it. I would like to overlay the first graph onto another (not using the same scale on the 2 graphs)so that the resulting graph looks just like the oscilloscope display and I don't want to lose those cursors. I can not use the picture plots because it's very hard to over a cursor on a specific spot on the graph(because I have to know the exact point on the picture to overlay a cursor) How do I?
0 Kudos
Message 1 of 3
(2,663 Views)
I'm not sure I understand your question. You can place one graph on top of another and make the top one transparent. If you do this, then everything, including cursors, on the bottom graph is visible along with the all of the information on the top graph. You can also have multiple Y axes on a single graph so that you can combine the data into one. Click on the Y scale and select Duplicate Scale. Then on the plot legend, click on the plot you want to assign to s specific Y scale, choose Y Scale and pick from the list of Y scales. If either of these things is not want you want, please explain a little more.
0 Kudos
Message 2 of 3
(2,663 Views)
If you want to control cursors from both graphs with the mouse, you are out of luck. I have overlaid waveform graphs with different Y scales many times. The problem is that the top graph has transparent parts to it so that the bottom graph shows through. This makes one graph look like two. Because one graph is on top of the other, the user cannot click on the display for the bottom graph. This prevents the bottom graph from having a cursor that can be moved with the mouse.

There are a few workarounds.
1. You can programaticly move the cursor with property nodes. This way you have a slider control located off the graph that can be moved by the user that in turn moves the cursor on the bottom graph.

2. Put two cursors on the top graph. You will not
be able to have the nice snap to point but the information from one of the cursors can be used to indicate values on the bottom graph. The code will be a little tricky but this most closely simulates both graphs having a cursor. The key will be using property nodes to calculate the visible range of the plots and the relative postion of the cursor to the edge. For instance, a cursor that is 10% from the right on the top graph is 10% from the right on the bottom graph, and its value can be caluculated.
0 Kudos
Message 3 of 3
(2,663 Views)