Skip to content

Latest commit

 

History

History
89 lines (69 loc) · 1.91 KB

File metadata and controls

89 lines (69 loc) · 1.91 KB
PHEXT > Plotlib > API Reference > Region

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.

Methods

__construct PrescaleSetup PreStrokeAdjust DoLegend Min Max StrokeMargin Stroke


__construct
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 NULL to 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 NULL to have it use the min. value of the y-scale.
  • int|string $colour The colour to be used for the fill.

PrescaleSetup
public function PrescaleSetup(object $aGraph) : void

No documentation available.


PreStrokeAdjust
public function PreStrokeAdjust(object $aGraph) : void

No documentation available.


DoLegend
public function DoLegend(object $graph) : void

No documentation available.


Min
public function Min() : array

Returns: array{NULL, NULL}


Max
public function Max() : array

Returns: array{NULL, NULL}


StrokeMargin
public function StrokeMargin(object $aImg) : void

No documentation available.


Stroke
public function Stroke(object $img, object $xscale, object $yscale) : void

No documentation available.