.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/intermediate/00.with_normal_plots.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_intermediate_00.with_normal_plots.py: ============================ With normal Matplotlib plots ============================ Ternary plots of mpltern can be combined with normal Matplotlib plots very straightforwardly. .. GENERATED FROM PYTHON SOURCE LINES 9-32 .. image-sg:: /gallery/intermediate/images/sphx_glr_00.with_normal_plots_001.svg :alt: 00.with normal plots :srcset: /gallery/intermediate/images/sphx_glr_00.with_normal_plots_001.svg :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from mpltern.datasets import get_spiral t, l, r = get_spiral() fig = plt.figure(figsize=(10.8, 4.8)) # Enough space may need to make the heights of the ternary and the normal plots # the same. fig.subplots_adjust(left=0.075, right=0.95) ax = fig.add_subplot(121, projection='ternary') ax.plot(t, l, r, 'k') ax = fig.add_subplot(122) ax.plot(t) ax.plot(l) ax.plot(r) plt.show() .. _sphx_glr_download_gallery_intermediate_00.with_normal_plots.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 00.with_normal_plots.ipynb <00.with_normal_plots.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 00.with_normal_plots.py <00.with_normal_plots.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_