

.. _sphx_glr_gallery_spines:

.. _spines_examples:

Spines
======



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This demo compares:">

.. only:: html

  .. image:: /gallery/spines/images/thumb/sphx_glr_spines_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_spines_spines.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Spines</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The position of the axis spines can be influenced using set_position.">

.. only:: html

  .. image:: /gallery/spines/images/thumb/sphx_glr_spine_placement_demo_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_spines_spine_placement_demo.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Spine placement</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of spines offset from the axes (a.k.a. &quot;dropped spines&quot;).">

.. only:: html

  .. image:: /gallery/spines/images/thumb/sphx_glr_spines_dropped_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_spines_spines_dropped.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Dropped spines</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Create multiple y axes with a shared x-axis. This is done by creating a twinx Axes, turning all spines but the right one invisible and offset its position using set_position.">

.. only:: html

  .. image:: /gallery/spines/images/thumb/sphx_glr_multiple_yaxis_with_spines_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_spines_multiple_yaxis_with_spines.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Multiple y-axis with Spines</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows a way to draw a &quot;math textbook&quot; style plot, where the spines (&quot;axes lines&quot;) are drawn at x = 0 and y = 0, and have arrows at their ends.">

.. only:: html

  .. image:: /gallery/spines/images/thumb/sphx_glr_centered_spines_with_arrows_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_spines_centered_spines_with_arrows.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Centered spines with arrows</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/spines/spines
   /gallery/spines/spine_placement_demo
   /gallery/spines/spines_dropped
   /gallery/spines/multiple_yaxis_with_spines
   /gallery/spines/centered_spines_with_arrows

