ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically set color for multiple plots on same graph

Is there a way to programmatically set the color for multiple plots that are on the same graph? I have about 72 plots on one graph and want to set their color without having to change each plot by hand on the plot legend.

Thanks!
Michelle
0 Kudos
Message 1 of 3
(3,151 Views)
Wow...
72 plots...
Can you even see anything?
You can change a plot's color (and other properties) by creating a property node for the graph. Then, you use the property node to select the active plot (you can do this in a loop to handle many plots) and set the plot's property.
To create a property node, right click on the control or the terminal and select Create>>Property Node. Then, select the property Active Plot and select another property (like Plot>Color) and write the value in.

___________________
Try to take over the world!
Message 2 of 3
(3,146 Views)
Active plot... I'll give it a try!

You can actually see quite a lot -- I have the x-scale divided into 24 sections, and each is a different plot. Then I can overlay different things like rms power on top of those. It adds up to a bunch of plots quickly!

Thanks for your help!
0 Kudos
Message 3 of 3
(3,140 Views)