SetXAxisPosition

SetXAxisPosition — Move the X axis

Synopsis

$plot->SetXAxisPosition($pos)
    

Description

SetXAxisPosition sets the position of the X axis, which is normally at Y=0.

Parameters

$pos

The Y position in world coordinates for the X axis. (World coordinates are the coordinate space of your data points.)

Notes

The given position is truncated (towards 0) to an integer value.

The X axis is usually drawn at Y=0, but if Y=0 is not within the range of the graph, the X axis is drawn at the bottom of the plot.