CLASS LogTicks EXTENDS Ticks (Defined in: jpgraph_log.php : 106)

LogTicks | Ticks
SetLabelLogType() | Set() SetColor() SetFormatCallback() SetLabelFormat() SetSide() SetSize() SetWeight() SupressFirst() SupressLast() SupressMinorTickMarks() SupressTickMarks() SupressZeroLabel()

Class usage and Overview
This class represents ticks on a logarithmic scale axis. It is responsible for drawing and positioning ticks.

See also related classes:
LogScale and Axis

Class Methods

function SetLabelLogType($aType)
Should the log labels be dispalyed with magnitudes ot plain numbers

Argument | Default | Description
--- | --- | ---
$aType |  | Magnitude (10^x) or plain

Description
Specify how labels for log scales should be formatted as magnitude (scientific) or plain.

$aType can be either

- LOGLABELS_PLAIN, will show labels as for example 10000
- LOGLABELS_MAGNITUDE, will show labels as 10^4

By default log scale uses magnitude type of labels.

Example

$graph->yaxis->scale->ticks->SetLabelLogType(LOGLABELS_PLAIN);