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>SetLineWidths</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="SetLineStyles.html" title="SetLineStyles" /><link rel="next" href="SetMarginsPixels.html" title="SetMarginsPixels" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetLineWidths</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetLineStyles.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n"
href="SetMarginsPixels.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetLineWidths"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetLineWidths</span></h2><p>SetLineWidths — Set line width (thickness) for each data set</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot->SetLineWidths(<em class="parameter"><code>$lw</code></em>)</pre></div><div class="refsect1"><a id="idp1378373804"></a><h2>Description</h2><p>
<code class="function">SetLineWidths</code> sets the desired line width to be used
when plotting each data set.
</p></div><div class="refsect1"><a id="idp1378374828"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$lw</code></em></span></dt><dd><p>
An array of line widths in pixels, one for each data set to be plotted.
Or, a single value to be used for all data sets.
</p></dd></dl></div></div><div class="refsect1"><a id="idp1378376396"></a><h2>Notes</h2><p>
If an array is used for <em class="parameter"><code>$lw</code></em>, it
must use zero-based sequential integer indexes.
</p><p>
The plot types that support using different line widths for the data sets
being plotted are:
<a class="link" href="conc-plottypes.html#plottype-lines" title="3.4.8. Plot Type: lines (Lines Plot)">lines</a>,
<a class="link" href="conc-plottypes.html#plottype-linepoints" title="3.4.7. Plot Type: linepoints (Lines and Points Plot)">linepoints</a>,
<a class="link" href="conc-plottypes.html#plottype-squared" title="3.4.12. Plot Type: squared (Squared Plot)">squared</a>, and
<a class="link" href="conc-plottypes.html#plottype-thinbarline" title="3.4.17. Plot Type: thinbarline (Thin Bar Line Plot)">thinbarline</a>.
In addition, you can use <code class="function">SetLineWidths</code> with some
other plot types which support only a single data set but use multiple
line widths in a plot-specific way:
<a class="link" href="conc-plottypes.html#plottype-boxes" title="3.4.3. Plot Type: boxes (Box Plot)">boxes</a>,
<a class="link" href="conc-plottypes.html#plottype-candlesticks" title="3.4.5. Plot Type: candlesticks (OHLC Candlesticks Plot)">candlesticks</a>,
<a class="link" href="conc-plottypes.html#plottype-candlesticks2" title="3.4.6. Plot Type: candlesticks2 (OHLC Filled Candlesticks Plot)">candlesticks2</a>, and
<a class="link" href="conc-plottypes.html#plottype-ohlc" title="3.4.9. Plot Type: ohlc (Basic OHLC Plot)">ohlc</a>.
Line widths do not apply to all other plot types.
</p><p>
By default, all data set plot lines are 1 pixel wide.
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetLineStyles.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="SetMarginsPixels.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetLineStyles </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetMarginsPixels</td></tr></table></div></body></html>