SetLegendWorld

SetLegendWorld — Position the legend on the image (world coordinates)

Synopsis

$plot->SetLegendWorld($x, $y)
    

Description

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.)

Parameters

$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.

Notes

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.