Sets the background color of a graph.


plotSetBkdColor(&myPlot, color)
  • &myPlot (struct pointer) – A plotControl structure pointer.
  • color (string) – name or rgb value of the new color.


// 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);


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 Tools > Preferences > Graphics menu. See the GAUSS Graphics chapter for more information on the methods available for customizing your graphs.