SetGridColor

SetGridColor — Set the color used for the axes and borders

Synopsis

$plot->SetGridColor($color)

Description

SetGridColor sets the color used for the X and Y axes, the plot border, and the legend border. It also sets the default color for pie chart data labels and pie chart segment borders.

Parameters

$color

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

Notes

The default color is black.

This doesn't actually set the color used by the grid; for that see SetLightGridColor. We have no idea why this is so.

The color used for pie chart segment borders is set with SetPieBorderColor (starting with PHPlot-6.0.0), with SetGridColor providing a default color.

The color used for pie chart data labels is set with SetPieLabelColor (starting with PHPlot-5.7.0), with SetGridColor providing a default color.

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.