.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/introductory/10.axis_labels.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_10.axis_labels.py: =========== Axis labels =========== Axis labels can be given using e.g. ``ax.set_tlabel``. For more detailed control, see :ref:`sphx_glr_gallery_axis_and_tick`. .. GENERATED FROM PYTHON SOURCE LINES 9-20 .. image-sg:: /gallery/introductory/images/sphx_glr_10.axis_labels_001.svg :alt: 10.axis labels :srcset: /gallery/introductory/images/sphx_glr_10.axis_labels_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.set_tlabel('Top') ax.set_llabel('Left') ax.set_rlabel('Right') plt.show() .. _sphx_glr_download_gallery_introductory_10.axis_labels.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 10.axis_labels.ipynb <10.axis_labels.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 10.axis_labels.py <10.axis_labels.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_