SetLegendPixels — Position the legend on the image (device coordinates)
$plot->SetLegendPixels([$x
, $y
])
SetLegendPixels
lets you position the legend on the
image, using device coordinates, rather than letting PHPlot position it for you.
$x
, $y
Absolute device coordinates of the upper left corner of the legend box. The units are pixels and the origin is in the upper left corner of the image. If the values are omitted or NULL, the default behavior is restored.
The default behavior is for PHPlot to position the legend in the upper right corner of the plot area.
See SetLegendPosition for more flexible legend
positioning options.
SetLegendPixels($x, $y)
is equivalent to
SetLegendPosition(0, 0, 'image', 0, 0, $x, $y)
.
This places the top left corner of the legend at the top left corner of the
image, offset by ($x, $y) pixels.
See also SetLegendWorld.
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.