LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting order

I've got N plots on one XY graph. In LabVIEW 6i Nth plot is plotted
first and the first plot is plotted last, so that the (N-1)th plot
overlays the Nth, etc which is very odd to my mind.
My plots just slightly differ from each other, and plotting order is
important to me. I want the last plot to overlay the others.
Reversing the plot array at the XY graph entrance is no good since it
changes the colors of the plots so that the last one is always white.
And I want that plot colors keep if a new plot is added.
Changing the colors via property node in a for cycle every time I add
plots seems too slow and clumsy to me. Though it is the only solution
I see so far.
Can anyone help me? Please.
0 Kudos
Message 1 of 2
(2,688 Views)
> Can anyone help me? Please.

The plot stacking order and array order are the same. This means that
if you want to change the stacking order, you will have to change the
array order.

The plot color is not something LV can do for you since when you add a
plot, LV doesn't know if it is added to the front, back, middle, or where.

If you want to recolor the plots, but the updates are too slow, then you
can set deferred updates, then set the properties, the turn off the updates.

If you want this to look simpler on the diagram, put this code into a
subVI and pass in the graph reference and plots.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,688 Views)