SetPlotBorderType

SetPlotBorderType — Control how much of a border is drawn around the plot

Synopsis

$plot->SetPlotBorderType($pbt)
    

Description

SetPlotBorderType controls how much of a border is drawn around the plot. By default, left and right side borders are drawn.

Parameters

$bt

A string indicating where to draw the plot borders:

ValueDescription
leftBorder on left side of plot only
sidesBorder on left and right sides of plot
fullBorder on all four sides of the plot
noneNo plot area border

Notes

Plot border color is set by SetGridColor (this color also applies to the axes and other elements). The default color is black.

Usually, the X axis is at the bottom of the plot where there bottom edge of the border would go. The Y axis is (apparently) always on the left where the left border would go. So typically this function only controls the top and right border.