LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlapping plots in a graph

I am doing a graph with multiple plots, that eventually overlap and one hides the others. I would want to be able to programatically select which one comes to front while the others remain in the background. How can I do this?

0 Kudos
Message 1 of 4
(3,172 Views)

Hi Obarriel,

I think you could do it easily by changing programmatically the plot colours. If you want the Plot 1 to stay in the background, you could give it a gray tone and then for instance, you colour Plot 2 in red. In the following link there is an example which can be helpful:

http://digital.ni.com/public.nsf/allkb/C6BFD9BD5F01108C86256F8100638B29?OpenDocument

Regards,

0 Kudos
Message 2 of 4
(3,154 Views)

Hi,

 

I tried to play on plot propeties hopping that it would activate the selected Active plot, but that had no effect.

The visible plot is always Plot 0. I'm afraid there is no mean to select which plot overlap the other Smiley Sad

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 3 of 4
(3,143 Views)

Plots are layered according to is plot number, with Plot 0 on top, i.e. Plot 0 overlays Plot 1, which overlays Plot 2, etc.

 

The only way to bring a plot to the front is to reorder the plots so it is Plot 0. 

 

In the attached example I have three waveforms, using a cluster of its to keep the Name, Color, and Y-Data together.  I placed these clusters in an array for easy manipluation, using toggle switch and "Reverse 1D Array.VI" to swap the order of the plots.  The plot name and color are unbundle and written to property nodes so the legend matches the plots.

Message 4 of 4
(3,133 Views)