SetLegendWorld
Prev | PHPlot Function Reference | Next

## 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

See also SetLegendPixels.

## History

Through PHPlot-5.0rc3, it was required that the data array, axis types, and any other setting which affects the scale of the data be set up before this function is used. Starting at PHPlot-5.0.4 this is no longer required, as the coordinates you supply are not scaled until the plot is drawn.

Prev | Up | Next
SetLegendStyle | Home | SetLightGridColor