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>SetLineStyles</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="SetLineSpacing.html" title="SetLineSpacing" /><link rel="next" href="SetLineWidths.html" title="SetLineWidths" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetLineStyles</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetLineSpacing.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetLineWidths.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetLineStyles"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetLineStyles</span></h2><p>SetLineStyles — Set the line style (solid or dashed) for each data set</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot->SetLineStyles(<em class="parameter"><code>$ls</code></em>)</pre></div><div class="refsect1"><a id="idp1378366188"></a><h2>Description</h2><p>
|
|
|
3 |
<code class="function">SetLineStyles</code> selects the line style for each plotted
|
|
|
4 |
data set.
|
|
|
5 |
</p></div><div class="refsect1"><a id="idp1378367196"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$ls</code></em></span></dt><dd><p>
|
|
|
6 |
An array of strings, each either 'solid', for solid lines; 'dashed', for
|
|
|
7 |
dashed lines, or 'none', to suppress the lines (see notes).
|
|
|
8 |
Or, a single value of 'solid' or 'dashed' to apply to all data sets.
|
|
|
9 |
</p></dd></dl></div></div><div class="refsect1"><a id="idp1378368844"></a><h2>Notes</h2><p>
|
|
|
10 |
If an array is used for <em class="parameter"><code>$ls</code></em>, it
|
|
|
11 |
must use zero-based sequential integer indexes.
|
|
|
12 |
</p><p>
|
|
|
13 |
The line style for dashed lines can be set with
|
|
|
14 |
<a class="xref" href="SetDefaultDashedStyle.html" title="SetDefaultDashedStyle"><span class="refentrytitle">SetDefaultDashedStyle</span></a>.
|
|
|
15 |
</p><p>
|
|
|
16 |
By default, the line styles are 'solid', 'solid', and 'dashed'.
|
|
|
17 |
(As with all style arrays, PHPlot duplicates the array as needed for the
|
|
|
18 |
number of data sets to be plotted.)
|
|
|
19 |
This means the 3rd and 6th data sets will plot as dashed lines unless you
|
|
|
20 |
use SetLineStyles to change it.
|
|
|
21 |
</p><p>
|
|
|
22 |
A line style can be set to 'none' to suppress the line for that data set.
|
|
|
23 |
This is only useful with 'linepoints' plot types, and results in a 'points'
|
|
|
24 |
plot type for that data set: markers only, but no lines.
|
|
|
25 |
(This is available with PHPlot-5.0rc3 and higher.)
|
|
|
26 |
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetLineSpacing.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="SetLineWidths.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetLineSpacing </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetLineWidths</td></tr></table></div></body></html>
|