LinearScale |
SetAutoMax() SetAutoMin() SetAutoTicks() SetGrace() |
Fix the maximum value for a scale
Argument | Default | Description |
---|---|---|
$aMax | Maximum value |
Example:
Set the minimum data value when the autoscaling is used.
Argument | Default | Description |
---|---|---|
$aMin | Min value |
Example:
Determine ticks automtically with manual scale
Argument | Default | Description |
---|---|---|
$aFlag | true | TRUE = determine ticks automatically |
For example:
$graph->SetScale("textlin",0,70);
$graph->yscale->ticks->Set(10,2);
However by instead using
$graph->SetScale("textlin",0,70);
$graph->yscale->SetAutoTicks();
The major and minor ticks are determined automatically.
The thing you have to be aware of is that the specified min and max values might be slightly modified so that the end/beginning of the scale will fall on a major tick step.
By default the auto ticks are off.
Example:
// Specify scale "grace" value (top and bottom)
Argument | Default | Description |
---|---|---|
$aGraceTop | Top grace value | |
$aGraceBottom | 0 | Bottom grace value |
By specifyin the grace you get added space. The value specified is interpretated as extra percentage of the total scale range.
For example if the scale range (without grace) is (0,100) and you add 10% top grace (with SetGrace(10)) the modified scale will be (0,110) and if you use a 100% top grace the scale will be (0,200) and so on.
Example: