SetYTickIncrement

SetYTickIncrement — Set the length of the interval between Y ticks

Synopsis

$plot->SetYTickIncrement([$ti])

Description

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.

Parameters

$ti

Desired tick increment, in world coordinates. If the value is omitted or an empty string, the default behavior is restored.

Notes

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.

History

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.

SourceForge.net Logo

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.