Changes
Created page with "Returns an RGB color number or a legacy color value that correspond to the color of the specified plot. ==== Usage ==== <syntaxhighlight>GetPlotColor(PlotNumber)</syntaxhigh..."
Returns an RGB color number or a legacy color value that correspond to the color of the specified plot.
==== Usage ====
<syntaxhighlight>GetPlotColor(PlotNumber)</syntaxhighlight>
Where: [[PlotNumber]] - a numerical expression specifying the plot number; plot numbers range from 1 to 999
==== Example ====
Assign an RGB color number, corresponding to the color of Plot1, to Value1 variable:
<syntaxhighlight>Value1=GetPlotColor(1);</syntaxhighlight>
Assign a legacy color value, corresponding to the color of Plot1, to Value1 variable:
<syntaxhighlight>[LegacyColorValue=True];
Value1=GetPlotColor(1);</syntaxhighlight>
[[Category:Plotting]]
==== Usage ====
<syntaxhighlight>GetPlotColor(PlotNumber)</syntaxhighlight>
Where: [[PlotNumber]] - a numerical expression specifying the plot number; plot numbers range from 1 to 999
==== Example ====
Assign an RGB color number, corresponding to the color of Plot1, to Value1 variable:
<syntaxhighlight>Value1=GetPlotColor(1);</syntaxhighlight>
Assign a legacy color value, corresponding to the color of Plot1, to Value1 variable:
<syntaxhighlight>[LegacyColorValue=True];
Value1=GetPlotColor(1);</syntaxhighlight>
[[Category:Plotting]]