SetLegendWorld — Position the legend on the image (world coordinates)
$plot->SetLegendWorld($x
,$y
)
SetLegendWorld
lets you position the legend on the
image, using world coordinates, rather than letting PHPlot position it for you.
(World coordinates are the coordinate space of your data points.)
$x
, $y
World coordinates of the upper left corner of the legend box. The units and origin are the same as the data you are plotting.
The data array, axis types, and any other setting which affects the scale of the data must be set up before this function is used, so that PHPlot can properly scale the coordinates.
See also SetLegendPixels.