Modifying traces whose names are stored in a text wave
Supriya Balaji
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
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 4, 2014 at 11:53 am - Permalink
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) = ...
August 5, 2014 at 06:45 am - Permalink