SetYTickLabelPos — Position the Y tick labels
$plot->SetYTickLabelPos($ytlp
)
SetYTickLabelPos
determines where (and if) the
Y tick labels are drawn. The labels can be drawn on the left side of the plot,
on the right side of the plot, in both positions, at the Y axis (even if it is
in the middle of the plot), or not drawn at all.
$ytlp
A string indicating the desired position for the Y tick labels:
Position | Description |
---|---|
plotleft | Tick labels on the left side of the plot |
plotright | Tick labels on the right side of the plot |
both | Tick labels on both left and right sides of the plot |
yaxis | Tick labels at Y axis (even if the axis is in the middle of the plot) |
none | No tick labels |
The default position for the Y tick labels is chosen to avoid overlapping tick and data labels. For vertical plots, there is no conflict (because data labels are drawn along X), so the tick label position defaults to 'plotleft'. For horizontal plots, the Y tick labels will default to 'none' if the Y data labels have been enabled using SetYDataLabelPos. If neither SetYTickLabelPos nor SetYDataLabelPos are used, PHPlot will enable just data labels if they are non-empty, and otherwise it will enable just tick labels, and position them to the left of the plot.
This applies only to tick labels. For data labels, see SetYDataLabelPos. You may want the tick marks to be in the same position as the tick labels. To position the tick marks, see SetYTickPos.
See SetYAxisPosition for positioning the Y axis.
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.