SetPlotBorderType — Control how much of a border is drawn around the plot
$plot->SetPlotBorderType($pbt
)
SetPlotBorderType
controls how much of a border is
drawn around the plot. By default, left and right side borders are drawn.
$bt
A string indicating where to draw the plot borders:
Value | Description |
---|---|
left | Border on left side of plot only |
sides | Border on left and right sides of plot |
full | Border on all four sides of the plot |
none | No plot area border |
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.