LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color control of my graph

I am plotting a bunch of graphs on one simple plot to compare them. IS there anyway I can control the color scheme for them. I want to specify each one different color.

I have attached the file. if you wanna take a look. It's really messy so please don't get angry if you don't understand the code. but I want you to focus in the last loop. That has comparison,CW motion and CCW motion graphs and then they plot on Comparison .. I want to control the colors of these plots when I finally plot them on comparison.
Hopefully my explanation will be of some help.

in anticipation of quick help
thanks
priiyank
Download All
0 Kudos
Message 1 of 2
(2,505 Views)
I haven't looked at your code but controlling the colors of the plots is easy enough; you create a property node of the graph and select two properties; active plot and plot color...Write the index of the plot you want to set the color of to the active plot property and then the color you want to the color property. If you have multiple plots and want to color all of them in a row create an array of the colors you want to use, wire it to a for loop with the property node with the two properties inside...wire the loop index to the active plot and the autoindexed color to the color.

Now perhaps you want to automatically generate that array of colors? Check out e.g. this thread:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650
0000008000000B2350000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=color+array&USEARCHCONTEXT_QUESTION_S=0
Message 2 of 2
(2,505 Views)