LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi plot waveform graph plot order

Solved!
Go to solution

Hi folks,

 

controlling the order of plots in a multiplot waveform graph through the "active plot" property doesn't seem to work. I found a many years old thread saying that this is a bug. Nothing has changed since then? Am I wrong?

See the attached vi.

 

Best regards,
Peter

0 Kudos
Message 1 of 12
(368 Views)

There is nothing attached and you cannot change the plot order. The "active plot" property defines which plot you want to address.

 

(Also: If you found an old discussion, you should include a link)

 

Message 2 of 12
(362 Views)

I see! If the "I am not a robot" verification fails upload links are being deleted. Who'd expect such a behaviour?

There is absolutely no way to control the order of plots in a waveform graph?

0 Kudos
Message 3 of 12
(312 Views)

Hi Ljewin,

 


@Ljewin wrote:

I see! If the "I am not a robot" verification fails upload links are being deleted. Who'd expect such a behaviour?


Everyone: there's so much SPAM in the forums nowaydays so there are some measures to handle possible SPAMmers…

 


@Ljewin wrote:

There is absolutely no way to control the order of plots in a waveform graph?


The "order of plots" is given by their order! 😄

The first plot is topmost, the last plot in the list is "most in the back".

You can decide which data is shown with plot0 and which data goes to plot1, plot2, and so on…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(306 Views)

Yes, Gerd, I know "the order" is a somehow confusing term. But you understood what I mean! Apparently, the order of the plots in the legend and the order of the plots in the stack are strongly interlinked, correct? I wished I could leave the order in the legend as it is but rearrange the plots in the stack. That doen't seem to be possible.

Thanks,
Peter

0 Kudos
Message 5 of 12
(293 Views)

(Sorry, I cannot open your VI unless you do a "save for previous, 2020 or below)

 

With a bit of custom code, you can of course change the plot order (or anything else!). You simply need some code that rearranges the data AND rearrange the plot legend accordingly. (But yes, the legend and order are always synchronized).

 

To e.g. highlight a certain trace hidden behind other traces, you can increase its linewidth or temporarily change the visibility of the plot in front. You can even hide the legend and create a custom legend (e.g. an array of suitable clusters) that suits your purpose.

0 Kudos
Message 6 of 12
(270 Views)

Just for completeness I am attaching the vi saved for LabVIEW 20 or below. 

Thanks for your directions. At the moment the effort is not worth the benefit. I will simply permute the order of plots in the array and live with the legend with sub-optimal plot order. If I was asked for a wish -- the opportunity to control the plot order independently from the legend through a property node would be one.

0 Kudos
Message 7 of 12
(247 Views)

Thanks for the VI. So what exactly do you want to see when the "active plot" ring is changed by the user?

 

 

(there is a bit of code smell: There are way too many value property nodes. Many are unnecessary and other should be change to local variables for efficiency. If you make your stop button latch action, no other code is needed for it. Why is the graph an control instead of indicator? etc...)

0 Kudos
Message 8 of 12
(229 Views)
Solution
Accepted by topic author Ljewin

Here's a quick draft how to change linewidth It can easily be expanded for more functionality.

 

altenbach_0-1753278638894.png

 

Message 9 of 12
(223 Views)

That's a very nice approach! The plot order in the stack is not actually being changed but only a very careful observer will realize this. Thank you very much!

0 Kudos
Message 10 of 12
(220 Views)