pyqtgraph/documentation/build/html/graphicsItems/axisitem.html
2012-03-01 21:55:32 -05:00

154 lines
6.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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=utf-8" />
<title>AxisItem &mdash; pyqtgraph v1.8 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.8',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="pyqtgraph v1.8 documentation" href="../index.html" />
<link rel="up" title="Pyqtgraphs Graphics Items" href="index.html" />
<link rel="next" title="ArrowItem" href="arrowitem.html" />
<link rel="prev" title="GraphicsLayout" href="graphicslayout.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="arrowitem.html" title="ArrowItem"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="graphicslayout.html" title="GraphicsLayout"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">pyqtgraph v1.8 documentation</a> &raquo;</li>
<li><a href="../apireference.html" >API Reference</a> &raquo;</li>
<li><a href="index.html" accesskey="U">Pyqtgraph&#8217;s Graphics Items</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="axisitem">
<h1>AxisItem<a class="headerlink" href="#axisitem" title="Permalink to this headline"></a></h1>
<dl class="class">
<dt id="pyqtgraph.AxisItem">
<em class="property">class </em><tt class="descclassname">pyqtgraph.</tt><tt class="descname">AxisItem</tt><big>(</big><em>orientation</em>, <em>pen=None</em>, <em>linkView=None</em>, <em>parent=None</em>, <em>maxTickLength=-5</em><big>)</big><a class="headerlink" href="#pyqtgraph.AxisItem" title="Permalink to this definition"></a></dt>
<dd><dl class="method">
<dt id="pyqtgraph.AxisItem.__init__">
<tt class="descname">__init__</tt><big>(</big><em>orientation</em>, <em>pen=None</em>, <em>linkView=None</em>, <em>parent=None</em>, <em>maxTickLength=-5</em><big>)</big><a class="headerlink" href="#pyqtgraph.AxisItem.__init__" title="Permalink to this definition"></a></dt>
<dd><p>GraphicsItem showing a single plot axis with ticks, values, and label.
Can be configured to fit on any side of a plot, and can automatically synchronize its displayed scale with ViewBox items.
Ticks can be extended to make a grid.</p>
</dd></dl>
<dl class="method">
<dt id="pyqtgraph.AxisItem.setGrid">
<tt class="descname">setGrid</tt><big>(</big><em>grid</em><big>)</big><a class="headerlink" href="#pyqtgraph.AxisItem.setGrid" title="Permalink to this definition"></a></dt>
<dd><p>Set the alpha value for the grid, or False to disable.</p>
</dd></dl>
<dl class="method">
<dt id="pyqtgraph.AxisItem.setScale">
<tt class="descname">setScale</tt><big>(</big><em>scale=None</em><big>)</big><a class="headerlink" href="#pyqtgraph.AxisItem.setScale" title="Permalink to this definition"></a></dt>
<dd><p>Set the value scaling for this axis.
The scaling value 1) multiplies the values displayed along the axis
and 2) changes the way units are displayed in the label.
For example:</p>
<blockquote>
If the axis spans values from -0.1 to 0.1 and has units set to &#8216;V&#8217;
then a scale of 1000 would cause the axis to display values -100 to 100
and the units would appear as &#8216;mV&#8217;</blockquote>
<p>If scale is None, then it will be determined automatically based on the current
range displayed by the axis.</p>
</dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="graphicslayout.html"
title="previous chapter">GraphicsLayout</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="arrowitem.html"
title="next chapter">ArrowItem</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/graphicsItems/axisitem.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="arrowitem.html" title="ArrowItem"
>next</a> |</li>
<li class="right" >
<a href="graphicslayout.html" title="GraphicsLayout"
>previous</a> |</li>
<li><a href="../index.html">pyqtgraph v1.8 documentation</a> &raquo;</li>
<li><a href="../apireference.html" >API Reference</a> &raquo;</li>
<li><a href="index.html" >Pyqtgraph&#8217;s Graphics Items</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2011, Luke Campagnola.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
</div>
</body>
</html>