CLASS LinearTicks EXTENDS Ticks (Defined in: jpgraph.php : 4237)

LinearTicks | Ticks
GetMajor() GetMinor() Set() SetTextLabelStart() | Set() SetColor() SetFormatCallback() SetLabelFormat() SetSide() SetSize() SetWeight() SupressFirst() SupressLast() SupressMinorTickMarks() SupressTickMarks() SupressZeroLabel()

Class usage and Overview
Internal class that handles the drawing and formatting of the tick marks on each axis. This class is accessed through it'sinstance variable in the scale, e.g.

$graph->xaxis->scale->ticks->Set(20,10);

Note: When you manually specify a scale you must also specify the major/minor tick intervall.

See also related classes:
LinearScale and LogScale

Class Methods

function GetMajor()
Return major step size in world coordinates

Description
Return major step size in world coordinates

Example

$majintervall = $graph->xaxis->scale->ticks->Getmajor();

function GetMinor()
// Return minor step size in world coordinates

Description
Return minor step size in world coordinates.

Example

$majintervall = $graph->xaxis->scale->ticks->Getmajor();

function Set($aMajStep,$aMinStep)
// Set Minor and Major ticks (in world coordinates)

Argument | Default | Description
--- | --- | ---
$aMajStep |  | Distance between major tick marks
$aMinStep | false | Distance between minor tick marks

Description
Set Minor and Major tick intervall (in world coordinates)

Example

$graph->yaxis->scale->ticks->Set(40,20);

function SetTextLabelStart($aTextLabelOff)
Which tick label should we start with?

Argument | Default | Description
--- | --- | ---
$aTextLabelOff |  | The number thaht the automatic textscale should start with.

Description
Normally text labels start at 0. However, automtic text labels can be started with an arbitrary number as specified with the argument to this method.

Example

$graph->xaxis->scale->ticks->SetTextLabelStart(10);