.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/triangle/00.aspect.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_triangle_00.aspect.py: ====== Aspect ====== The triangle aspect can be modified by `ax.set_aspect`. For more general triangles, use ``rotation`` and/or ``corners``. .. GENERATED FROM PYTHON SOURCE LINES 9-23 .. image-sg:: /gallery/triangle/images/sphx_glr_00.aspect_001.svg :alt: 00.aspect :srcset: /gallery/triangle/images/sphx_glr_00.aspect_001.svg :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from mpltern.datasets import get_spiral ax = plt.subplot(projection='ternary') ax.plot(*get_spiral()) ax.set_aspect(1.5) ax.set_tlabel('Top') ax.set_llabel('Left') ax.set_rlabel('Right') plt.show() .. _sphx_glr_download_gallery_triangle_00.aspect.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 00.aspect.ipynb <00.aspect.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 00.aspect.py <00.aspect.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_