98 |
- |
1 |
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
|
|
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>SetLegendPixels</title><link rel="stylesheet" type="text/css" href="phplotdoc.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="PHPlot Reference Manual" /><link rel="up" href="reference.html" title="PHPlot Function Reference" /><link rel="prev" href="SetLegendColorboxBorders.html" title="SetLegendColorboxBorders" /><link rel="next" href="SetLegendPosition.html" title="SetLegendPosition" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetLegendPixels</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetLegendColorboxBorders.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetLegendPosition.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetLegendPixels"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetLegendPixels</span></h2><p>SetLegendPixels — Position the legend on the image (device coordinates)</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot->SetLegendPixels([<span class="optional"><em class="parameter"><code>$x</code></em>, <em class="parameter"><code>$y</code></em></span>])</pre></div><div class="refsect1"><a id="idp1378252276"></a><h2>Description</h2><p>
|
|
|
3 |
<code class="function">SetLegendPixels</code> lets you position the legend on the
|
|
|
4 |
image, using device coordinates, rather than letting PHPlot position it for you.
|
|
|
5 |
</p></div><div class="refsect1"><a id="idp1378253348"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$x</code></em>, </span><span class="term"><em class="replaceable"><code>$y</code></em></span></dt><dd><p>
|
|
|
6 |
Absolute device coordinates of the upper left corner of the legend box.
|
|
|
7 |
The units are pixels and the origin is in the upper left corner of the image.
|
|
|
8 |
If the values are omitted or NULL, the default behavior is restored.
|
|
|
9 |
</p></dd></dl></div></div><div class="refsect1"><a id="idp1378255268"></a><h2>Notes</h2><p>
|
|
|
10 |
The default behavior is for PHPlot to position the legend in the
|
|
|
11 |
upper right corner of the plot area.
|
|
|
12 |
</p><p>
|
|
|
13 |
See <a class="xref" href="SetLegendPosition.html" title="SetLegendPosition"><span class="refentrytitle">SetLegendPosition</span></a> for more flexible legend
|
|
|
14 |
positioning options.
|
|
|
15 |
<code class="literal">SetLegendPixels($x, $y)</code> is equivalent to
|
|
|
16 |
<code class="literal">SetLegendPosition(0, 0, 'image', 0, 0, $x, $y)</code>.
|
|
|
17 |
This places the top left corner of the legend at the top left corner of the
|
|
|
18 |
image, offset by ($x, $y) pixels.
|
|
|
19 |
</p><p>
|
|
|
20 |
See also <a class="xref" href="SetLegendWorld.html" title="SetLegendWorld"><span class="refentrytitle">SetLegendWorld</span></a>.
|
|
|
21 |
</p></div><div class="refsect1"><a id="idp1378258052"></a><h2>History</h2><p>
|
|
|
22 |
Through PHPlot-5.3.0, the arguments were required.
|
|
|
23 |
To restore the default behavior, it was necessary to use
|
|
|
24 |
<code class="literal">SetLegendPixels(NULL, NULL)</code>.
|
|
|
25 |
Starting with PHPlot-5.3.1, the arguments may be omitted to restore the
|
|
|
26 |
default behavior.
|
|
|
27 |
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetLegendColorboxBorders.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="SetLegendPosition.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetLegendColorboxBorders </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetLegendPosition</td></tr></table></div></body></html>
|