12-14-2011 10:26 PM
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
Solved! Go to Solution.
12-15-2011 11:18 AM - edited 12-15-2011 11:19 AM
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.
12-15-2011 02:50 PM
Works great... One of the many hidden secrets of Labview 🙂
Thanks for your quick help.