PHEXT > Plotlib > API Reference > Region
A visual rectangular region on a graph that represents an area between data points.
This class is used by BulkPlot, which provides an interface to creating regions through the configuration options when adding a plot.
You do not need to work with this class directly when working with BulkPlot.
__construct PrescaleSetup PreStrokeAdjust DoLegend Min Max StrokeMargin Stroke
public function __construct(int $xstart, int $ystart, int $xend, int $yend, string|int $colour) Construct a new Region at the given co-ordinates.
- int $xstart left-most point x-axis.
- ?int $ystart top-most point on the y-axis. Pass
NULLto have it use the max. value of the y-scale. - int $xend right-most point on the x-axis.
- ?int $yend bottom-most point on the y-axis. Pass
NULLto have it use the min. value of the y-scale. - int|string $colour The colour to be used for the fill.
public function PrescaleSetup(object $aGraph) : voidNo documentation available.
public function PreStrokeAdjust(object $aGraph) : voidNo documentation available.
public function DoLegend(object $graph) : voidNo documentation available.
public function Min() : arrayReturns: array{NULL, NULL}
public function Max() : arrayReturns: array{NULL, NULL}
public function StrokeMargin(object $aImg) : voidNo documentation available.
public function Stroke(object $img, object $xscale, object $yscale) : voidNo documentation available.