SetXTickLabelPos

SetXTickLabelPos — Position the X tick labels

Synopsis

$plot->SetXTickLabelPos($xtlp)
    

Description

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.

Parameters

$xtlp

A string indicating the desired position for the X tick labels:

PositionDescription
plotdownTick labels below the plot
plotupTick labels above the plot
bothTick labels both below and above the plot
xaxisTick labels at X axis (even if the axis is in the middle of the plot)
noneNo tick labels

Notes

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.