GetPlotColor: Difference between revisions
From MultiCharts
no edit summary
(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...") |
No edit summary |
||
Line 1: | Line 1: | ||
Returns an RGB color number or a legacy color value that correspond to the color of the specified | Returns an [[RGB]] color number or a legacy color value that correspond to the color of the specified [[Plot]]. | ||
== Usage == | |||
<syntaxhighlight>GetPlotColor(PlotNumber)</syntaxhighlight> | <syntaxhighlight>GetPlotColor(PlotNumber)</syntaxhighlight> | ||
Where: | Where: | ||
:'''PlotNumber''' - a numerical expression specifying the plot number; plot numbers range from 1 to 999. | |||
==== | == Notes == | ||
Assign an RGB color number, corresponding to the color of Plot1, to Value1 variable: | * Use [[SetPlotColor]] to set the color of a specified [[Plot]]. | ||
== Examples == | |||
Assign an [[RGB]] color number, corresponding to the color of Plot1, to the Value1 variable: | |||
<syntaxhighlight>Value1=GetPlotColor(1);</syntaxhighlight> | <syntaxhighlight>Value1 = GetPlotColor(1);</syntaxhighlight> | ||
Assign a legacy color value, corresponding to the color of Plot1, to Value1 variable: | Assign a [[LegacyColorValue|legacy color value]], corresponding to the color of Plot1, to the Value1 variable: | ||
<syntaxhighlight>[LegacyColorValue=True]; | <syntaxhighlight>[LegacyColorValue = True]; | ||
Value1=GetPlotColor(1);</syntaxhighlight> | Value1 = GetPlotColor(1);</syntaxhighlight> | ||
[[Category:Plotting]] | [[Category:Plotting]] |