SetYTitle

SetYTitle — Sets the Y axis title, and optionally its position

Synopsis

$plot->SetYTitle($ytitle, [$ypos])
    

Description

SetYTitle sets the text to be displayed as the Y axis title. Optionally, it also sets the position of the title and the axis itself: on the left side of the graph (the usual place), on the right side, both, or neither.

Parameters

$ytitle

The text string to use for the Y axis title. The string can contain multiple lines, separated by newlines (in PHP: "\n").

$ypos

Optional position for the Y axis and title. Use one of the following strings for the position:

PositionDescription
plotleftY axis on the left side of the plot
plotrightY axis on the right side of the plot
bothOne Y axis on the left, and one on the right
noneNo Y axis, no Y axis title

The default is 'plotleft'.