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>SetTextColor</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="SetSkipTopTick.html" title="SetSkipTopTick" /><link rel="next" href="SetTickColor.html" title="SetTickColor" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetTextColor</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetSkipTopTick.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetTickColor.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetTextColor"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetTextColor</span></h2><p>SetTextColor &#8212; Set general text color</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot-&gt;SetTextColor(<em class="parameter"><code>$color</code></em>)</pre></div><div class="refsect1"><a id="idp1378777356"></a><h2>Description</h2><p>
3
<code class="function">SetTextColor</code> sets the default color which is used for
4
legend text, tick labels, and data labels.
5
    </p></div><div class="refsect1"><a id="idp1378778396"></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="idp1378780252"></a><h2>Notes</h2><p>
9
The default text color is black.
10
    </p><p>
11
Starting with PHPlot-5.7.0, there are more specific functions to set
12
the color for labels: <a class="xref" href="SetDataLabelColor.html" title="SetDataLabelColor"><span class="refentrytitle">SetDataLabelColor</span></a>,
13
<a class="xref" href="SetDataValueLabelColor.html" title="SetDataValueLabelColor"><span class="refentrytitle">SetDataValueLabelColor</span></a>, and
14
<a class="xref" href="SetTickLabelColor.html" title="SetTickLabelColor"><span class="refentrytitle">SetTickLabelColor</span></a>.
15
All of these elements default to using the color set with
16
<code class="function">SetTextColor</code>.
17
    </p><p>
18
Starting with PHPlot-6.0.0, the legend text color can be set with
19
<a class="xref" href="SetLegendTextColor.html" title="SetLegendTextColor"><span class="refentrytitle">SetLegendTextColor</span></a>. If that function is not used,
20
then the legend text uses the color set with <code class="function">SetTextColor</code>.
21
    </p></div><div class="refsect1"><a id="idp1378783740"></a><h2>Example</h2><p>
22
Legend text and data labels will be blue, and tick labels will be red.
23
Note that the functions may be used in any order, with the same results.
24
      </p><pre class="programlisting">$plot-&gt;SetTextColor('blue');
25
$plot-&gt;SetTickLabelColor('red');</pre><p>
26
    </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetSkipTopTick.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="SetTickColor.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetSkipTopTick </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetTickColor</td></tr></table></div></body></html>