SetXLabelAngle

SetXLabelAngle — Set the text angle for X labels

Synopsis

$plot->SetXLabelAngle($xla)
    

Description

SetXLabelAngle sets the text angle for X tick labels. Unless SetXDataLabelAngle is called, the same angle is also used for X data labels. If using TrueType fonts, any angle can be used. If using built-in GD fonts, only 0 degree and 90 degree text can be used.

Parameters

$xla

Desired angle for label text, in degrees.

Notes

The default text angle for X labels is 0 degrees, for horizontal text.

History

Through PHPlot-5.0.7, SetXLabelAngle sets the angle for both tick and data labels. Starting with PHPlot-5.1.0, these can be controlled independently using SetXDataLabelAngle. For compatibility, data label angles default to the value set for tick label angles with SetXLabelAngle.