plotSetBkdColor¶
Purpose¶
Sets the background color of a graph.
Format¶
-
plotSetBkdColor
(&myPlot, color)¶ Parameters: - &myPlot (struct pointer) – A
plotControl
structure pointer. - color (string) – name or rgb value of the new color.
- &myPlot (struct pointer) – A
Examples¶
// Declare plotControl structure
struct plotControl myPlot;
// Initialize plotControl structure
myPlot = plotGetDefaults("polar");
// Set new background color to light grey
plotSetBkdColor(&myPlot, "light grey");
// Create data
x = seqa(0.1, 0.1, 200);
y = x;
// Create a polar plot of the data with the new background
// color
plotPolar(myPlot, x, y);
Remarks¶
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 the GAUSS Graphics chapter for more information on the
methods available for customizing your graphs.
See also
Functions plotGetDefaults()
, plotSetLineColor()
, plotSetLineSymbol()