.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/axis_and_tick/11.tick_direction.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_axis_and_tick_11.tick_direction.py: ============== Tick direction ============== Tick direction can be modified via `ax.tick_params(direction={'in', 'out', 'inout'})`. .. GENERATED FROM PYTHON SOURCE LINES 9-21 .. image-sg:: /gallery/axis_and_tick/images/sphx_glr_11.tick_direction_001.svg :alt: ax.tick_params(direction='in'), ax.tick_params(direction='out'), ax.tick_params(direction='inout') :srcset: /gallery/axis_and_tick/images/sphx_glr_11.tick_direction_001.svg :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import mpltern fig = plt.figure(figsize=(10.8, 4.8)) fig.subplots_adjust(left=0.075, right=0.925, wspace=0.25) for i, direction in enumerate(["in", "out", "inout"]): ax = fig.add_subplot(1, 3, i + 1, projection='ternary') ax.tick_params(direction=direction) ax.set_title(f"ax.tick_params(direction='{direction}')", pad=36) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 2.266 seconds) .. _sphx_glr_download_gallery_axis_and_tick_11.tick_direction.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 11.tick_direction.ipynb <11.tick_direction.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 11.tick_direction.py <11.tick_direction.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_