09-06-2011 10:12 AM
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?
09-07-2011 03:14 AM
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,
09-07-2011 06:46 AM
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
Olivier L. | Certified LabVIEW Developer
09-07-2011 08:48 AM
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.