.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/introductory/06.text.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_06.text.py: ==== Text ==== Texts cant be put using ``ax.text`` in the same way as Matplotlib. .. GENERATED FROM PYTHON SOURCE LINES 8-18 .. image-sg:: /gallery/introductory/images/sphx_glr_06.text_001.svg :alt: 06.text :srcset: /gallery/introductory/images/sphx_glr_06.text_001.svg :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import mpltern # noqa: F401 ax = plt.subplot(projection='ternary') c = 1.0 / 3.0 ax.text(c, c, c, 'center', ha='center', va='center') plt.show() .. _sphx_glr_download_gallery_introductory_06.text.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 06.text.ipynb <06.text.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 06.text.py <06.text.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_