SetPlotBgColor

SetPlotBgColor — Set plot area background color

Synopsis

$plot->SetPlotBgColor($color)

Description

SetPlotBgColor sets the background color of the plot area of the image (the area inside the margins, title, and usually the axes).

Parameters

$color

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

Notes

Background color is disabled by default. If you want a background color for the plot area, you must enabled it with SetDrawPlotAreaBackground.

Background image takes priority over background color. If a background image was set with SetPlotAreaBgImage, then no background color will be drawn, even if it was enabled.

The default background color for the plot area is white (if enabled as noted above). If background color for the plot area is not enabled, the overall background color (or image) will be seen in the plot area.

SourceForge.net Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.