.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/introductory/04.normalization.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_04.normalization.py: ============= Normalization ============= The normalization constant of ternary plots can be modified using ``ternary_sum``. .. warning:: Prior to mpltern 1.0.0, the option name was ``ternary_scale``. .. note:: The ternary data are automatically normalized with a few exceptions. See details in :doc:`../../conventions`. .. GENERATED FROM PYTHON SOURCE LINES 16-25 .. image-sg:: /gallery/introductory/images/sphx_glr_04.normalization_001.svg :alt: 04.normalization :srcset: /gallery/introductory/images/sphx_glr_04.normalization_001.svg :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from mpltern.datasets import get_spiral fig = plt.figure() ax = fig.add_subplot(projection='ternary', ternary_sum=100.0) t, l, r = get_spiral() ax.plot(t, l, r) # Data are automatically normalized by ``ternary_sum``. plt.show() .. _sphx_glr_download_gallery_introductory_04.normalization.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 04.normalization.ipynb <04.normalization.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 04.normalization.py <04.normalization.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_