plotSetLineColor¶
Purpose¶
Sets the line colors for a graph.
Format¶
-
plotSetLineColor
(&myPlot, colors)¶ - Parameters
&myPlot (struct pointer) – A
plotControl
structure pointer.colors (String array) – name or rgb value of the new colors.
Examples¶
// Declare plotControl structure
struct plotControl myPlot;
// Initialize plotControl structure
myPlot = plotGetDefaults("xy");
// Set new line colors to aqua and midnight blue
clrs = "aqua"$|"midnight blue";
plotSetLineColor(&myPlot, clrs);
// Create data
x = seqa(0.1, 1, 50);
y = sin(x)~cos(x);
// Plot the data with the new line colors
plotXY(myPlot, x, y);
Remarks¶
Note
This function sets an attribute in a plotControl
structure. It does not
affect an existing graph, or a new graph drawn using the default
settings that are accessible from the
menu.
See also
Functions plotGetDefaults()
, plotSetLineSymbol()