LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the color of graph programmatically

Solved!
Go to solution

Hiii Everyone,

 

I have to plot 12 plots in one waveform graph. I have selected the colors on plot legend for each plot. But I don't want to display 12 graph at a time. I have provided checkboxes for selection of parameters like which parameter's graph user want to see. I have done this much its working well.

 

But there is one problem in color of graph, if I select 12 parameters at a time then it displays with same color which I have selected on plot legend. But if I select less than 12 parameters labview assign colors serially irrespective of color assigned. I have attached the VI please help me out with this. 

 

Thanks & Regards,

Manisha

0 Kudos
Message 1 of 4
(3,942 Views)

That is quite a Rube Goldberg you have there.  First, let's fix that.

 

Attached is a modified VI that has identical function to what you posted with far less code.

0 Kudos
Message 2 of 4
(3,939 Views)
Solution
Accepted by topic author Man_Can

Your actual problem is not that you've changed colors on the graph, it's that you've change the label.  You've effectively restructured your entire array.

 

Why don't you use the Plot Visible? property to determine what is visible.  Now you are talking about almost no code.

Message 3 of 4
(3,933 Views)

Thank you so much RavensFan. 

0 Kudos
Message 4 of 4
(3,929 Views)