SetYAxisPosition — Move the Y axis
$plot->SetYAxisPosition($pos
)
$pos
The X position in world coordinates for the Y axis. (World coordinates are the coordinate space of your data points.)
The given position is truncated (towards 0) to an integer value.
The default axis position differs for vertical and horizontal plots. For vertical plots, the Y axis position defaults to the left side of the plot. For horizontal plots, the Y axis position defaults to X=0, provided X=0 is within the range of the graph. If X=0 is not within the range of the graph, the Y axis position will default to the edge with the smallest absolute X value. This means the Y axis will be on the left side of the graph if all values of X are greater than zero, and on the right side of the graph if all values of X are less than zero. (For log scale plots, however, the default Y axis position is X=1.)