.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/introductory/09.grid.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_introductory_09.grid.py: #### Grid #### The grid along the tick positions can be plotted using ``ax.grid``. See also :doc:`tick locators <../axis_and_tick/21.tick-locators>` for more controls. .. GENERATED FROM PYTHON SOURCE LINES 9-18 .. image-sg:: /gallery/introductory/images/sphx_glr_09.grid_001.svg :alt: 09.grid :srcset: /gallery/introductory/images/sphx_glr_09.grid_001.svg :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import mpltern # noqa: F401 ax = plt.subplot(projection='ternary') ax.grid() plt.show() .. _sphx_glr_download_gallery_introductory_09.grid.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 09.grid.ipynb <09.grid.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 09.grid.py <09.grid.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_