.. _sphx_glr_gallery_transforms: Transforms ========== .. |Transform| replace:: ``Transform`` .. _Transform: https://matplotlib.org/stable/tutorials/advanced/transforms_tutorial.html Mpltern is implemented as a new `projection `__ of Matplotlib by implementing several new |Transform|_ classes for ternary plots. This allows us to auto-position tick markers, tick labels, and axis labels with reasonable paddings consistent with Matplotlib. The examples below show how to use such |Transform|_ classes in mpltern. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/transforms/images/thumb/sphx_glr_00.cartesian_thumb.svg :alt: :ref:`sphx_glr_gallery_transforms_00.cartesian.py` .. raw:: html
Cartesian coordinates
.. raw:: html
.. only:: html .. image:: /gallery/transforms/images/thumb/sphx_glr_01.ticks_thumb.svg :alt: :ref:`sphx_glr_gallery_transforms_01.ticks.py` .. raw:: html
Ticks
.. raw:: html
.. only:: html .. image:: /gallery/transforms/images/thumb/sphx_glr_06.plot_fixed_onto_triangle_thumb.svg :alt: :ref:`sphx_glr_gallery_transforms_06.plot_fixed_onto_triangle.py` .. raw:: html
Plot fixed onto triangle
.. raw:: html
.. only:: html .. image:: /gallery/transforms/images/thumb/sphx_glr_99.arrows_along_axes_thumb.svg :alt: :ref:`sphx_glr_gallery_transforms_99.arrows_along_axes.py` .. raw:: html
Arrows along axes
.. raw:: html
.. toctree:: :hidden: /gallery/transforms/00.cartesian /gallery/transforms/01.ticks /gallery/transforms/06.plot_fixed_onto_triangle /gallery/transforms/99.arrows_along_axes