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>SetXAxisPosition</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="SetUseTTF.html" title="SetUseTTF" /><link rel="next" href="SetXDataLabelAngle.html" title="SetXDataLabelAngle" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetXAxisPosition</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetUseTTF.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetXDataLabelAngle.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetXAxisPosition"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetXAxisPosition</span></h2><p>SetXAxisPosition &#8212; Move the X axis</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot-&gt;SetXAxisPosition([<span class="optional"><em class="parameter"><code>$pos</code></em></span>])</pre></div><div class="refsect1"><a id="idp1378853348"></a><h2>Description</h2><p>
<code class="function">SetXAxisPosition</code> sets the position of the X axis.
    </p></div><div class="refsect1"><a id="idp1378854340"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$pos</code></em></span></dt><dd><p>
The Y position in world coordinates for the X axis.
(World coordinates are the coordinate space of your data points.)
If the value is omitted or an empty string, the default behavior is restored.
          </p></dd></dl></div></div><div class="refsect1"><a id="idp1378855996"></a><h2>Notes</h2><p>
The given position is truncated (towards 0) to an integer value.
    </p><p>
The default axis position differs for vertical and horizontal plots.
For vertical plots, the X axis position defaults to Y=0, provided Y=0 is
within the range of the graph. If Y=0 is not within the range of the graph,
the X axis position will default to the edge with the smallest absolute Y
value.  This means the X axis will be at the bottom of the graph if all
values of Y are greater than zero, and at the top of the graph if all
values of Y are less than zero.  (For log scale plots, however, the default
X axis position is Y=1.)
For horizontal plots, the X axis position defaults to the bottom of the plot.
    </p></div><div class="refsect1"><a id="idp1378857484"></a><h2>History</h2><p>
Through PHPlot-5.3.0, the argument was required, and there was no way to
restore the default behavior (because the argument value was always converted
to an integer).
Starting with PHPlot-5.3.1, the argument may be given as an empty string,
or omitted, to restore the default behavior.
    </p><p>
Through PHPlot-5.1.3, there was no special handling for horizontal plots.
The X axis always defaulted to Y=0 or the Y with the smallest absolute value.
    </p><p>
Through PHPlot-5.1.0, the default position for the X axis was the bottom of
the graph whenever Y=0 was not within the range the graph, regardless of
whether the data was all positive or all negative.
    </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetUseTTF.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="SetXDataLabelAngle.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetUseTTF </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetXDataLabelAngle</td></tr></table></div></body></html>