<!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>spines — Matplotlib 1.2.0 documentation</title> <link rel="stylesheet" href="../_static/mpl.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.2.0', 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="search" type="application/opensearchdescription+xml" title="Search within Matplotlib 1.2.0 documentation" href="../_static/opensearch.xml"/> <link rel="top" title="Matplotlib 1.2.0 documentation" href="../index.html" /> <link rel="up" title="The Matplotlib API" href="index.html" /> <link rel="next" title="ticker" href="ticker_api.html" /> <link rel="prev" title="sankey" href="sankey_api.html" /> </head> <body> <!-- Piwik --> <script type="text/javascript"> if ("matplotlib.sourceforge.net" == document.location.hostname || "matplotlib.sf.net" == document.location.hostname) { var pkBaseURL = (("https:" == document.location.protocol) ? "https://apps.sourceforge.net/piwik/matplotlib/" : "http://apps.sourceforge.net/piwik/matplotlib/"); document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); } </script> <script type="text/javascript"> if ("matplotlib.sourceforge.net" == document.location.hostname || "matplotlib.sf.net" == document.location.hostname) { piwik_action_name = ''; piwik_idsite = 1; piwik_url = pkBaseURL + "piwik.php"; piwik_log(piwik_action_name, piwik_idsite, piwik_url); document.write(unescape('%3Cobject%3E%3Cnoscript%3E%3Cp%3E%3Cimg src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1" alt="piwik"/%3E%3C/p%3E%3C/noscript%3E%3C/object%3E')); } </script> <!-- End Piwik Tag --> <link rel="shortcut icon" href="_static/favicon.ico"> <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> <a href="../index.html"><img src="../_static/logo2.png" border="0" alt="matplotlib"/></a> </div> <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="ticker_api.html" title="ticker" accesskey="N">next</a> |</li> <li class="right" > <a href="sankey_api.html" title="sankey" accesskey="P">previous</a> |</li> <li><a href="../index.html">home</a>| </li> <li><a href="../search.html">search</a>| </li> <li><a href="../examples/index.html">examples</a>| </li> <li><a href="../gallery.html">gallery</a>| </li> <li><a href="../contents.html">docs</a> »</li> <li><a href="index.html" accesskey="U">The Matplotlib API</a> »</li> </ul> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../contents.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">spines</a><ul> <li><a class="reference internal" href="#module-matplotlib.spines"><tt class="docutils literal"><span class="pre">matplotlib.spines</span></tt></a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="sankey_api.html" title="previous chapter">sankey</a></p> <h4>Next topic</h4> <p class="topless"><a href="ticker_api.html" title="next chapter">ticker</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/api/spines_api.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" /> <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="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="spines"> <h1>spines<a class="headerlink" href="#spines" title="Permalink to this headline">¶</a></h1> <div class="section" id="module-matplotlib.spines"> <span id="matplotlib-spines"></span><h2><a class="reference internal" href="#module-matplotlib.spines" title="matplotlib.spines"><tt class="xref py py-mod docutils literal"><span class="pre">matplotlib.spines</span></tt></a><a class="headerlink" href="#module-matplotlib.spines" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="matplotlib.spines.Spine"> <em class="property">class </em><tt class="descclassname">matplotlib.spines.</tt><tt class="descname">Spine</tt><big>(</big><em>axes</em>, <em>spine_type</em>, <em>path</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference internal" href="artist_api.html#matplotlib.patches.Patch" title="matplotlib.patches.Patch"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.patches.Patch</span></tt></a></p> <p>an axis spine – the line noting the data area boundaries</p> <p>Spines are the lines connecting the axis tick marks and noting the boundaries of the data area. They can be placed at arbitrary positions. See function:<a class="reference internal" href="#matplotlib.spines.Spine.set_position" title="matplotlib.spines.Spine.set_position"><tt class="xref py py-obj docutils literal"><span class="pre">set_position</span></tt></a> for more information.</p> <p>The default position is <tt class="docutils literal"><span class="pre">('outward',0)</span></tt>.</p> <p>Spines are subclasses of class:<a class="reference internal" href="artist_api.html#matplotlib.patches.Patch" title="matplotlib.patches.Patch"><tt class="xref py py-obj docutils literal"><span class="pre">Patch</span></tt></a>, and inherit much of their behavior.</p> <p>Spines draw a line or a circle, depending if function:<a class="reference internal" href="#matplotlib.spines.Spine.set_patch_line" title="matplotlib.spines.Spine.set_patch_line"><tt class="xref py py-obj docutils literal"><span class="pre">set_patch_line</span></tt></a> or function:<a class="reference internal" href="#matplotlib.spines.Spine.set_patch_circle" title="matplotlib.spines.Spine.set_patch_circle"><tt class="xref py py-obj docutils literal"><span class="pre">set_patch_circle</span></tt></a> has been called. Line-like is the default.</p> <ul class="simple"> <li><em>axes</em> : the Axes instance containing the spine</li> <li><em>spine_type</em> : a string specifying the spine type</li> <li><em>path</em> : the path instance used to draw the spine</li> </ul> <p>Valid kwargs are:</p> <blockquote> <div><table border="1" class="docutils"> <colgroup> <col width="31%" /> <col width="69%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">Property</th> <th class="head">Description</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_agg_filter" title="matplotlib.artist.Artist.set_agg_filter"><tt class="xref py py-meth docutils literal"><span class="pre">agg_filter</span></tt></a></td> <td>unknown</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_alpha" title="matplotlib.patches.Patch.set_alpha"><tt class="xref py py-meth docutils literal"><span class="pre">alpha</span></tt></a></td> <td>float or None</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_animated" title="matplotlib.artist.Artist.set_animated"><tt class="xref py py-meth docutils literal"><span class="pre">animated</span></tt></a></td> <td>[True | False]</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_antialiased" title="matplotlib.patches.Patch.set_antialiased"><tt class="xref py py-meth docutils literal"><span class="pre">antialiased</span></tt></a> or aa</td> <td>[True | False] or None for default</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_axes" title="matplotlib.artist.Artist.set_axes"><tt class="xref py py-meth docutils literal"><span class="pre">axes</span></tt></a></td> <td>an <a class="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><tt class="xref py py-class docutils literal"><span class="pre">Axes</span></tt></a> instance</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_clip_box" title="matplotlib.artist.Artist.set_clip_box"><tt class="xref py py-meth docutils literal"><span class="pre">clip_box</span></tt></a></td> <td>a <a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Bbox" title="matplotlib.transforms.Bbox"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.transforms.Bbox</span></tt></a> instance</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_clip_on" title="matplotlib.artist.Artist.set_clip_on"><tt class="xref py py-meth docutils literal"><span class="pre">clip_on</span></tt></a></td> <td>[True | False]</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_clip_path" title="matplotlib.artist.Artist.set_clip_path"><tt class="xref py py-meth docutils literal"><span class="pre">clip_path</span></tt></a></td> <td>[ (<a class="reference internal" href="path_api.html#matplotlib.path.Path" title="matplotlib.path.Path"><tt class="xref py py-class docutils literal"><span class="pre">Path</span></tt></a>, <a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><tt class="xref py py-class docutils literal"><span class="pre">Transform</span></tt></a>) | <a class="reference internal" href="artist_api.html#matplotlib.patches.Patch" title="matplotlib.patches.Patch"><tt class="xref py py-class docutils literal"><span class="pre">Patch</span></tt></a> | None ]</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_color" title="matplotlib.patches.Patch.set_color"><tt class="xref py py-meth docutils literal"><span class="pre">color</span></tt></a></td> <td>matplotlib color spec</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_contains" title="matplotlib.artist.Artist.set_contains"><tt class="xref py py-meth docutils literal"><span class="pre">contains</span></tt></a></td> <td>a callable function</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_edgecolor" title="matplotlib.patches.Patch.set_edgecolor"><tt class="xref py py-meth docutils literal"><span class="pre">edgecolor</span></tt></a> or ec</td> <td>mpl color spec, or None for default, or ‘none’ for no color</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_facecolor" title="matplotlib.patches.Patch.set_facecolor"><tt class="xref py py-meth docutils literal"><span class="pre">facecolor</span></tt></a> or fc</td> <td>mpl color spec, or None for default, or ‘none’ for no color</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_figure" title="matplotlib.artist.Artist.set_figure"><tt class="xref py py-meth docutils literal"><span class="pre">figure</span></tt></a></td> <td>a <a class="reference internal" href="figure_api.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.figure.Figure</span></tt></a> instance</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_fill" title="matplotlib.patches.Patch.set_fill"><tt class="xref py py-meth docutils literal"><span class="pre">fill</span></tt></a></td> <td>[True | False]</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_gid" title="matplotlib.artist.Artist.set_gid"><tt class="xref py py-meth docutils literal"><span class="pre">gid</span></tt></a></td> <td>an id string</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_hatch" title="matplotlib.patches.Patch.set_hatch"><tt class="xref py py-meth docutils literal"><span class="pre">hatch</span></tt></a></td> <td>[ ‘/’ | ‘\’ | ‘|’ | ‘-‘ | ‘+’ | ‘x’ | ‘o’ | ‘O’ | ‘.’ | ‘*’ ]</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_label" title="matplotlib.artist.Artist.set_label"><tt class="xref py py-meth docutils literal"><span class="pre">label</span></tt></a></td> <td>string or anything printable with ‘%s’ conversion.</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_linestyle" title="matplotlib.patches.Patch.set_linestyle"><tt class="xref py py-meth docutils literal"><span class="pre">linestyle</span></tt></a> or ls</td> <td>[‘solid’ | ‘dashed’ | ‘dashdot’ | ‘dotted’]</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_linewidth" title="matplotlib.patches.Patch.set_linewidth"><tt class="xref py py-meth docutils literal"><span class="pre">linewidth</span></tt></a> or lw</td> <td>float or None for default</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_lod" title="matplotlib.artist.Artist.set_lod"><tt class="xref py py-meth docutils literal"><span class="pre">lod</span></tt></a></td> <td>[True | False]</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.patches.Patch.set_path_effects" title="matplotlib.patches.Patch.set_path_effects"><tt class="xref py py-meth docutils literal"><span class="pre">path_effects</span></tt></a></td> <td>unknown</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_picker" title="matplotlib.artist.Artist.set_picker"><tt class="xref py py-meth docutils literal"><span class="pre">picker</span></tt></a></td> <td>[None|float|boolean|callable]</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_rasterized" title="matplotlib.artist.Artist.set_rasterized"><tt class="xref py py-meth docutils literal"><span class="pre">rasterized</span></tt></a></td> <td>[True | False | None]</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_snap" title="matplotlib.artist.Artist.set_snap"><tt class="xref py py-meth docutils literal"><span class="pre">snap</span></tt></a></td> <td>unknown</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_transform" title="matplotlib.artist.Artist.set_transform"><tt class="xref py py-meth docutils literal"><span class="pre">transform</span></tt></a></td> <td><a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><tt class="xref py py-class docutils literal"><span class="pre">Transform</span></tt></a> instance</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_url" title="matplotlib.artist.Artist.set_url"><tt class="xref py py-meth docutils literal"><span class="pre">url</span></tt></a></td> <td>a url string</td> </tr> <tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_visible" title="matplotlib.artist.Artist.set_visible"><tt class="xref py py-meth docutils literal"><span class="pre">visible</span></tt></a></td> <td>[True | False]</td> </tr> <tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_zorder" title="matplotlib.artist.Artist.set_zorder"><tt class="xref py py-meth docutils literal"><span class="pre">zorder</span></tt></a></td> <td>any number</td> </tr> </tbody> </table> </div></blockquote> <dl class="classmethod"> <dt id="matplotlib.spines.Spine.circular_spine"> <em class="property">classmethod </em><tt class="descname">circular_spine</tt><big>(</big><em>axes</em>, <em>center</em>, <em>radius</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.circular_spine" title="Permalink to this definition">¶</a></dt> <dd><p>(staticmethod) Returns a circular <a class="reference internal" href="#matplotlib.spines.Spine" title="matplotlib.spines.Spine"><tt class="xref py py-class docutils literal"><span class="pre">Spine</span></tt></a>.</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.cla"> <tt class="descname">cla</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.cla" title="Permalink to this definition">¶</a></dt> <dd><p>Clear the current spine</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.draw"> <tt class="descname">draw</tt><big>(</big><em>artist</em>, <em>renderer</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.draw" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.get_bounds"> <tt class="descname">get_bounds</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.get_bounds" title="Permalink to this definition">¶</a></dt> <dd><p>Get the bounds of the spine.</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.get_patch_transform"> <tt class="descname">get_patch_transform</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.get_patch_transform" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.get_path"> <tt class="descname">get_path</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.get_path" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.get_position"> <tt class="descname">get_position</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.get_position" title="Permalink to this definition">¶</a></dt> <dd><p>get the spine position</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.get_smart_bounds"> <tt class="descname">get_smart_bounds</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.get_smart_bounds" title="Permalink to this definition">¶</a></dt> <dd><p>get whether the spine has smart bounds</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.get_spine_transform"> <tt class="descname">get_spine_transform</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.get_spine_transform" title="Permalink to this definition">¶</a></dt> <dd><p>get the spine transform</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.is_frame_like"> <tt class="descname">is_frame_like</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.is_frame_like" title="Permalink to this definition">¶</a></dt> <dd><p>return True if directly on axes frame</p> <p>This is useful for determining if a spine is the edge of an old style MPL plot. If so, this function will return True.</p> </dd></dl> <dl class="classmethod"> <dt id="matplotlib.spines.Spine.linear_spine"> <em class="property">classmethod </em><tt class="descname">linear_spine</tt><big>(</big><em>axes</em>, <em>spine_type</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.linear_spine" title="Permalink to this definition">¶</a></dt> <dd><p>(staticmethod) Returns a linear <a class="reference internal" href="#matplotlib.spines.Spine" title="matplotlib.spines.Spine"><tt class="xref py py-class docutils literal"><span class="pre">Spine</span></tt></a>.</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.register_axis"> <tt class="descname">register_axis</tt><big>(</big><em>axis</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.register_axis" title="Permalink to this definition">¶</a></dt> <dd><p>register an axis</p> <p>An axis should be registered with its corresponding spine from the Axes instance. This allows the spine to clear any axis properties when needed.</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.set_bounds"> <tt class="descname">set_bounds</tt><big>(</big><em>low</em>, <em>high</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.set_bounds" title="Permalink to this definition">¶</a></dt> <dd><p>Set the bounds of the spine.</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.set_color"> <tt class="descname">set_color</tt><big>(</big><em>c</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.set_color" title="Permalink to this definition">¶</a></dt> <dd><p>Set the edgecolor.</p> <p>ACCEPTS: matplotlib color arg or sequence of rgba tuples</p> <div class="admonition-see-also admonition seealso"> <p class="first admonition-title">See also</p> <dl class="last docutils"> <dt><tt class="xref py py-meth docutils literal"><span class="pre">set_facecolor()</span></tt>, <tt class="xref py py-meth docutils literal"><span class="pre">set_edgecolor()</span></tt></dt> <dd>For setting the edge or face color individually.</dd> </dl> </div> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.set_patch_circle"> <tt class="descname">set_patch_circle</tt><big>(</big><em>center</em>, <em>radius</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.set_patch_circle" title="Permalink to this definition">¶</a></dt> <dd><p>set the spine to be circular</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.set_patch_line"> <tt class="descname">set_patch_line</tt><big>(</big><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.set_patch_line" title="Permalink to this definition">¶</a></dt> <dd><p>set the spine to be linear</p> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.set_position"> <tt class="descname">set_position</tt><big>(</big><em>position</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.set_position" title="Permalink to this definition">¶</a></dt> <dd><p>set the position of the spine</p> <p>Spine position is specified by a 2 tuple of (position type, amount). The position types are:</p> <ul class="simple"> <li>‘outward’ : place the spine out from the data area by the specified number of points. (Negative values specify placing the spine inward.)</li> <li>‘axes’ : place the spine at the specified Axes coordinate (from 0.0-1.0).</li> <li>‘data’ : place the spine at the specified data coordinate.</li> </ul> <p>Additionally, shorthand notations define a special positions:</p> <ul class="simple"> <li>‘center’ -> (‘axes’,0.5)</li> <li>‘zero’ -> (‘data’, 0.0)</li> </ul> </dd></dl> <dl class="method"> <dt id="matplotlib.spines.Spine.set_smart_bounds"> <tt class="descname">set_smart_bounds</tt><big>(</big><em>value</em><big>)</big><a class="headerlink" href="#matplotlib.spines.Spine.set_smart_bounds" title="Permalink to this definition">¶</a></dt> <dd><p>set the spine and associated axis to have smart bounds</p> </dd></dl> </dd></dl> </div> </div> </div> </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="ticker_api.html" title="ticker" >next</a> |</li> <li class="right" > <a href="sankey_api.html" title="sankey" >previous</a> |</li> <li><a href="../index.html">home</a>| </li> <li><a href="../search.html">search</a>| </li> <li><a href="../examples/index.html">examples</a>| </li> <li><a href="../gallery.html">gallery</a>| </li> <li><a href="../contents.html">docs</a> »</li> <li><a href="index.html" >The Matplotlib API</a> »</li> </ul> </div> <div class="footer"> © Copyright 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team. Last updated on Jul 23, 2013. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>