LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change waveform graph plot order

I am using waveform graph with 2D input dat to create two plots, each with its own y-axis, but a common x-axis. Plot 0 is always on top of Plot 1. Is there a way to have Plot 1 on top of (in front of) Plot 0?

--Ryan

Labview 8.5
Message 1 of 5
(5,674 Views)
What do you mean by plot 0 being "on top" of plot 1? If you have a waveform graph they would be just lines, or are you using a different kind of plot? The legend order is based on the order of the array of data that you fed to the graph.
0 Kudos
Message 2 of 5
(5,663 Views)
Plot 0 is a bar plot and Plot 1 is a line plot. By "on top" I mean that I would like to have one plot be "in front". In other words, I would like to have the line plot in front of the bar plot, so that the line plot isn't covered by the bar plot.

At this point in time, it would require significant effort to switch the order of the data in the array since many other aspects of the program expect a particular order. I was hoping for a property that could be changed.

Thanks,

--Ryan
0 Kudos
Message 3 of 5
(5,655 Views)
You would only need to reorder the array that's fed to the graph. You would not need to change the original dataset. See attached for a sample.

I'm not aware of a property that allows you to change the plot number of a plot after the fact. At least not in 8.2. Can't speak for 8.5.
0 Kudos
Message 4 of 5
(5,632 Views)
Thank you for the help and example. I will just have to rework my program to allow me to switch the plots (the biggest issue is I use Property Nodes connected to the Waveform Graphs to access the data in other parts of the program and they will end up providing swapped arrays).

--Ryan
0 Kudos
Message 5 of 5
(5,608 Views)