SetBackgroundColor
Prev | PHPlot Function Reference | Next

## SetBackgroundColor

SetBackgroundColor — Sets the overall background color.

## Synopsis

    $plot->SetBackgroundColor($color)

## Description

`SetBackgroundColor` sets the overall background color. This is the color of the background of the whole image.

## Parameters

`$color`

  Color value to use. See Section 3.5, “Colors” for more on color values.

## Notes

The default background color is white. Background image overrides background color; background color is ignored if a background image was set with SetBgImage.

The background color shows through in the plot area too, unless the plot area background is changed with SetPlotBgColor or SetPlotAreaBgImage.

The background color is used as the legend background, unless SetLegendBgColor is used to change it.

Prev | Up | Next
RemoveCallback | Home | SetBgImage