Blame | Last modification | View Log | RSS feed
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!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 — Set general text color</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot->SetTextColor(<em class="parameter"><code>$color</code></em>)</pre></div><div class="refsect1"><a id="idp1378777356"></a><h2>Description</h2><p>
<code class="function">SetTextColor</code> sets the default color which is used for
legend text, tick labels, and data labels.
</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>
Color value to use.
See <a class="xref" href="conc-colors.html" title="3.5. Colors">Section 3.5, “Colors”</a> for more on color values.
</p></dd></dl></div></div><div class="refsect1"><a id="idp1378780252"></a><h2>Notes</h2><p>
The default text color is black.
</p><p>
Starting with PHPlot-5.7.0, there are more specific functions to set
the color for labels: <a class="xref" href="SetDataLabelColor.html" title="SetDataLabelColor"><span class="refentrytitle">SetDataLabelColor</span></a>,
<a class="xref" href="SetDataValueLabelColor.html" title="SetDataValueLabelColor"><span class="refentrytitle">SetDataValueLabelColor</span></a>, and
<a class="xref" href="SetTickLabelColor.html" title="SetTickLabelColor"><span class="refentrytitle">SetTickLabelColor</span></a>.
All of these elements default to using the color set with
<code class="function">SetTextColor</code>.
</p><p>
Starting with PHPlot-6.0.0, the legend text color can be set with
<a class="xref" href="SetLegendTextColor.html" title="SetLegendTextColor"><span class="refentrytitle">SetLegendTextColor</span></a>. If that function is not used,
then the legend text uses the color set with <code class="function">SetTextColor</code>.
</p></div><div class="refsect1"><a id="idp1378783740"></a><h2>Example</h2><p>
Legend text and data labels will be blue, and tick labels will be red.
Note that the functions may be used in any order, with the same results.
</p><pre class="programlisting">$plot->SetTextColor('blue');
$plot->SetTickLabelColor('red');</pre><p>
</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>