Sign in to follow this  
NickB

Change Trace color through scripting

Recommended Posts

I am wanting to change the color of a trace with script what is the syntax to use?

Share this post


Link to post
Share on other sites

You have to give both the Graph itself and the trace a name.  The graph is named just like any other component.  The trace name is set on the Trace properties page, or if programatically adding traces.  Then it is simply:

component.myGraph.myTrace.Color = RGB(255,0,0)

for example.  This would set the trace to red.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this