LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

single plot color for all the plots in a multiplot display ?

Solved!
Go to solution

Hi,

 

I am plotting say 100 plots in a multiplot display. Is there a way to plot all of these in a single color ?

 

Currently, I plot them all and then go and change the color of each one. The problem with this is that sometimes, the color change does not occur fast enough and a gamut of colors are seen on the traces before all the traces settle on the single color.

 

Thanks

0 Kudos
Message 1 of 3
(2,562 Views)
Solution
Accepted by topic author sv123

As long as you know the maximum number of plots you might have, you should be able to set up the colors for all the plots ahead of time.   You could do this manually, but if there are a large number of plots, you'll probably still want to do the setup programatically.  To start, you have to init the number of plots in the graph or chart; otherwise the number of plots is defined by the data.  To do this, view the plot legend.  For a large number of plots, right click on the plot legend and select the index control so you can manipulate it like an array.  You can put the index ahead to "99" and click on the control to init the plot array with 100 elements.  Now you can set the color for all 100 plots programatically.  Once the setup is done you can copy the control to another VI and/or save the VI / Control with all the properties as they are, so you won't have to do it on each run of the actual program. 

0 Kudos
Message 2 of 3
(2,539 Views)

Works great... One of the many hidden secrets of Labview 🙂

 

Thanks for your quick help.

0 Kudos
Message 3 of 3
(2,526 Views)