Modifying traces whose names are stored in a text wave

Hi I have created a textwave consisting of names of certain output fits of a curve fitting function.

I am trying to change the color of these particular waves but the ModifyGraph rgb option always returns an error that the trace is not on the graph whereas every fit of the curve fitting operation is present in that graph.

Is there a way to solve this problem?

TIA
Please post a brief example. The question is too general otherwise.

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
Supriya Balaji wrote:
Hi I have created a textwave consisting of names of certain output fits of a curve fitting function.

I am trying to change the color of these particular waves but the ModifyGraph rgb option always returns an error that the trace is not on the graph whereas every fit of the curve fitting operation is present in that graph.

Is there a way to solve this problem?

TIA



It's probably in the way you are specifying the trace name. The operation expects a literal name. If the wave name is stored in a string then the string needs to be prefaced with a "$".
Thus...

If the wave is named "wave1" then the command would be rgb(wave1) = ...

If the wave name is stored in the string "string1" then the command would be
rgb($string1) = ...