SetErrorBarColors

SetErrorBarColors — Sets the colors used for data error bars

Synopsis

$plot->SetErrorBarColors($error_bar_colors)
    

Description

SetErrorBarColors sets the colors used for each data set's error bars, in the same way SetDataColors sets the colors used for the data plot itself.

Parameters

$error_bar_colors

An array of color values, one for each data set's error bars. Or, a single color value to use for all data set error bars. See Section 3.5, “Colors” for more on color values.

Notes

If an array is used for $error_bar_colors, it must use zero based sequential integer indexes. This is what the PHP manual calls 'the usual integer indices (starting from zero, increasing by one)'.

The default array of error bar colors contains the same 8 colors as the data colors array: SkyBlue, green, orange, blue, orange, red, violet, and azure1. If you change the data colors with SetDataColors, you probably want to change the error bar colors to the same array.