SetYTickIncrement — Set the length of the interval between Y ticks
$plot->SetYTickIncrement([$ti
])
SetYTickIncrement
sets the length of the interval between
Y tick marks (the tick increment, or tick step).
You can use either this function or SetNumYTicks
(but not both) to control the tick mark spacing.
$ti
Desired tick increment, in world coordinates. If the value is omitted or an empty string, the default behavior is restored.
If neither SetYTickIncrement
nor
SetNumYTicks is used, the tick interval
is automatically calculated by PHPlot.
See Section 4.6.7, “Automatic Tick Increment Calculation” for details.
Before PHPlot-6.0.0, if neither the number of ticks nor the tick increment were specified, PHPlot calculated the tick increment as 1/10 of the X data range. Starting with PHPlot-6.0.0, a more complex algorithm is used which tries to produce 'natural' tick increments.
Starting with PHPlot-6.0.0, if you call both SetNumYTicks
and SetYTickIncrement
, the tick increment has priority
and the specified number of ticks is ignored.
Before PHPlot-6.0.0, the behavior was order-dependent: whichever function
was used last had priority.
This version of the manual was produced for the
PHPlot Sourceforge project web service site, which requires the logo on each
page.
To download a logo-free copy of the manual, see the
PHPlot project downloads
area.