SetYTitle — Sets the Y axis title, and optionally its position
$plot->SetYTitle($ytitle
, [$ypos
])
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.
$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:
Position | Description |
---|---|
plotleft | Y axis on the left side of the plot |
plotright | Y axis on the right side of the plot |
both | One Y axis on the left, and one on the right |
none | No Y axis, no Y axis title |
The default is 'plotleft'.
This version of the manual was produced for the
PHPlot Sourceforge project web service site, which requires the logo on each
page.
To download a logo-free copy of the manual, see the
PHPlot project downloads
area.