SetXTickLabelPos — Position the X tick labels
$plot->SetXTickLabelPos($xtlp
)
SetXTickLabelPos
determines where (and if) the
X tick labels are drawn. The labels can be drawn at the bottom of the plot,
above the plot, in both positions, at the X axis (even if it is in the
middle of the plot), or not drawn at all.
$xtlp
A string indicating the desired position for the X tick labels:
Position | Description |
---|---|
plotdown | Tick labels below the plot |
plotup | Tick labels above the plot |
both | Tick labels both below and above the plot |
xaxis | Tick labels at X axis (even if the axis is in the middle of the plot) |
none | No tick labels |
The default position for the X tick labels is below the plot.
Calling this function to position the tick labels (that is, with parameter other than 'none') turns off X data labels as if SetXDataLabelPos was called with parameter 'none', to prevent overlapping tick and data labels.
This applies only to tick labels. For data labels, see SetXDataLabelPos. You probably want the tick marks to be in the same positions as the tick labels. To position the tick marks, see SetXTickPos.