Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>SetLegendBgColor</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="SetLegend.html" title="SetLegend" /><link rel="next" href="SetLegendColorboxBorders.html" title="SetLegendColorboxBorders" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetLegendBgColor</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetLegend.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetLegendColorboxBorders.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetLegendBgColor"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetLegendBgColor</span></h2><p>SetLegendBgColor &#8212; Set legend background color</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot-&gt;SetLegendBgColor(<em class="parameter"><code>$color</code></em>)</pre></div><div class="refsect1"><a id="idp1378229684"></a><h2>Description</h2><p>
3
<code class="function">SetLegendBgColor</code> sets the background color used in the
4
legend.
5
    </p></div><div class="refsect1"><a id="idp1378230684"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$color</code></em></span></dt><dd><p>
6
Color value to use.
7
See <a class="xref" href="conc-colors.html" title="3.5. Colors">Section 3.5, &#8220;Colors&#8221;</a> for more on color values.
8
          </p></dd></dl></div></div><div class="refsect1"><a id="idp1378232540"></a><h2>Notes</h2><p>
9
If <code class="function">SetLegendBgColor</code> is not used, the legend background
10
color will be the same as the image background color.
11
The image background color is set with <a class="xref" href="SetBackgroundColor.html" title="SetBackgroundColor"><span class="refentrytitle">SetBackgroundColor</span></a>,
12
and defaults to white.
13
    </p><p>
14
If you position the legend outside the plot area, this function is useful to
15
make it stand out more, by using a color that differs from image background
16
color. Similarly, if your legend is positioned inside the plot area, but you
17
have not changed the plot area background, you can use this function to make
18
the legend stand out with a different background color.
19
    </p></div><div class="refsect1"><a id="idp1378234588"></a><h2>History</h2><p>
20
This function was added in PHPlot-6.0.0. In earlier releases, the legend
21
background was always drawn using the image background color.
22
    </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetLegend.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="SetLegendColorboxBorders.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetLegend </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetLegendColorboxBorders</td></tr></table></div></body></html>