Subversion Repositories cheapmusic

Rev

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>SetXTickIncrement</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="SetXTickCrossing.html" title="SetXTickCrossing" /><link rel="next" href="SetXTickLabelPos.html" title="SetXTickLabelPos" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetXTickIncrement</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetXTickCrossing.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetXTickLabelPos.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetXTickIncrement"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetXTickIncrement</span></h2><p>SetXTickIncrement &#8212; Set the length of the interval between X ticks</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot-&gt;SetXTickIncrement([<span class="optional"><em class="parameter"><code>$ti</code></em></span>])</pre></div><div class="refsect1"><a id="idp1379041260"></a><h2>Description</h2><p>
<code class="function">SetXTickIncrement</code> sets the length of the interval between
X tick marks (the tick increment, or tick step).
You can use either this function or <a class="xref" href="SetNumXTicks.html" title="SetNumXTicks"><span class="refentrytitle">SetNumXTicks</span></a>
(but not both) to control the tick mark spacing.
    </p></div><div class="refsect1"><a id="idp1379042764"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$ti</code></em></span></dt><dd><p>
Desired tick increment, in world coordinates.
If the value is omitted or an empty string, the default behavior is restored.
          </p></dd></dl></div></div><div class="refsect1"><a id="idp1379044332"></a><h2>Notes</h2><p>
If neither <code class="function">SetXTickIncrement</code> nor 
<a class="xref" href="SetNumXTicks.html" title="SetNumXTicks"><span class="refentrytitle">SetNumXTicks</span></a> is used, the tick interval
is automatically calculated by PHPlot.
See <a class="xref" href="adv-autorange.html#adv-autorange-tick" title="4.6.7. Automatic Tick Increment Calculation">Section 4.6.7, &#8220;Automatic Tick Increment Calculation&#8221;</a> for details.
    </p></div><div class="refsect1"><a id="idp1379046068"></a><h2>History</h2><p>
Before PHPlot-6.0.0, if neither the number of ticks nor the tick increment
were specified, PHPlot calculated the tick increment as 1/10 of the X data
range.
Starting with PHPlot-6.0.0, a more complex algorithm is used which tries
to produce 'natural' tick increments.
    </p><p>
Starting with PHPlot-6.0.0, if you call both <code class="function">SetNumXTicks</code>
and <code class="function">SetXTickIncrement</code>, the tick increment has priority
and the specified number of ticks is ignored.
Before PHPlot-6.0.0, the behavior was order-dependent: whichever function
was used last had priority.
    </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetXTickCrossing.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="SetXTickLabelPos.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetXTickCrossing </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetXTickLabelPos</td></tr></table></div></body></html>