:orphan: .. _examples-index: .. _gallery: ######## Examples ######## This gallery contains examples of mpltern. .. raw:: html
.. raw:: html
Introductory ============ .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_00.line_and_curve_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_00.line_and_curve.py` .. raw:: html
Line and curve
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_01.scatter_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_01.scatter.py` .. raw:: html
Scatter
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_02.contour_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_02.contour.py` .. raw:: html
Contour
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_03.pseudocolor_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_03.pseudocolor.py` .. raw:: html
Pseudocolor
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_04.normalization_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_04.normalization.py` .. raw:: html
Normalization
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_05.span_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_05.span.py` .. raw:: html
Span
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_06.text_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_06.text.py` .. raw:: html
Text
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_07.polygon_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_07.polygon.py` .. raw:: html
Polygon
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_08.quiver_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_08.quiver.py` .. raw:: html
Quiver
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_09.grid_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_09.grid.py` .. raw:: html
Grid
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_10.axis_labels_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_10.axis_labels.py` .. raw:: html
Axis labels
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_11.triangular_grid_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_11.triangular_grid.py` .. raw:: html
Triangular grid
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_axline_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_axline.py` .. raw:: html
AxLine
.. raw:: html
.. only:: html .. image:: /gallery/introductory/images/thumb/sphx_glr_legend_thumb.svg :alt: :ref:`sphx_glr_gallery_introductory_legend.py` .. raw:: html
Legend
.. raw:: html
Intermediate ============ .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/intermediate/images/thumb/sphx_glr_00.with_normal_plots_thumb.svg :alt: :ref:`sphx_glr_gallery_intermediate_00.with_normal_plots.py` .. raw:: html
With normal Matplotlib plots
.. raw:: html
.. only:: html .. image:: /gallery/intermediate/images/thumb/sphx_glr_01.style_sheets_thumb.svg :alt: :ref:`sphx_glr_gallery_intermediate_01.style_sheets.py` .. raw:: html
Style sheets
.. raw:: html
.. only:: html .. image:: /gallery/intermediate/images/thumb/sphx_glr_99.inset_thumb.svg :alt: :ref:`sphx_glr_gallery_intermediate_99.inset.py` .. raw:: html
Inset
.. raw:: html
Statistics ========== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/statistics/images/thumb/sphx_glr_hexbin_thumb.svg :alt: :ref:`sphx_glr_gallery_statistics_hexbin.py` .. raw:: html
HexBin
.. raw:: html
.. only:: html .. image:: /gallery/statistics/images/thumb/sphx_glr_tribin_thumb.svg :alt: :ref:`sphx_glr_gallery_statistics_tribin.py` .. raw:: html
TriBin
.. raw:: html
.. only:: html .. image:: /gallery/statistics/images/thumb/sphx_glr_with_scatter_thumb.svg :alt: :ref:`sphx_glr_gallery_statistics_with_scatter.py` .. raw:: html
Binned & scatter
.. raw:: html
Axis and Tick ============= The examples below show how to control tick markers, tick labels, and axis labels. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_00.axis_label_position_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_00.axis_label_position.py` .. raw:: html
Axis-label position
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_01.axis_label_rotation_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_01.axis_label_rotation.py` .. raw:: html
Axis-label rotation
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_10.tick_position_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_10.tick_position.py` .. raw:: html
Tick position
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_11.tick_direction_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_11.tick_direction.py` .. raw:: html
Tick direction
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_12.tick_rotation_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_12.tick_rotation.py` .. raw:: html
Tick rotation
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_20.tick-formatters_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_20.tick-formatters.py` .. raw:: html
Tick formatters
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_21.tick-locators_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_21.tick-locators.py` .. raw:: html
Tick locators
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_30.manual_tick_positions_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_30.manual_tick_positions.py` .. raw:: html
Manual tick positions
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_31.manual_ticklabels_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_31.manual_ticklabels.py` .. raw:: html
Manual tick labels
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_98.colored_axes_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_98.colored_axes.py` .. raw:: html
Colored axes
.. raw:: html
.. only:: html .. image:: /gallery/axis_and_tick/images/thumb/sphx_glr_99.tick_labels_inside_triangle_thumb.svg :alt: :ref:`sphx_glr_gallery_axis_and_tick_99.tick_labels_inside_triangle.py` .. raw:: html
Tick labels inside triangle
.. raw:: html
Ternary Limits ============== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/limits/images/thumb/sphx_glr_00.triangular_limits_thumb.svg :alt: :ref:`sphx_glr_gallery_limits_00.triangular_limits.py` .. raw:: html
Triangular limits
.. raw:: html
.. only:: html .. image:: /gallery/limits/images/thumb/sphx_glr_01.hexagonal_limits_thumb.svg :alt: :ref:`sphx_glr_gallery_limits_01.hexagonal_limits.py` .. raw:: html
Hexagonal limits
.. raw:: html
.. only:: html .. image:: /gallery/limits/images/thumb/sphx_glr_02.fit_thumb.svg :alt: :ref:`sphx_glr_gallery_limits_02.fit.py` .. raw:: html
Plotting region fitting
.. raw:: html
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
Triangle ======== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/triangle/images/thumb/sphx_glr_00.aspect_thumb.svg :alt: :ref:`sphx_glr_gallery_triangle_00.aspect.py` .. raw:: html
Aspect
.. raw:: html
.. only:: html .. image:: /gallery/triangle/images/thumb/sphx_glr_01.triangle_rotation_thumb.svg :alt: :ref:`sphx_glr_gallery_triangle_01.triangle_rotation.py` .. raw:: html
Triangle rotation
.. raw:: html
.. only:: html .. image:: /gallery/triangle/images/thumb/sphx_glr_02.arbitrary_triangle_thumb.svg :alt: :ref:`sphx_glr_gallery_triangle_02.arbitrary_triangle.py` .. raw:: html
Arbitrary triangle
.. raw:: html
Miscellaneous ============= .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/miscellaneous/images/thumb/sphx_glr_00.logos_thumb.svg :alt: :ref:`sphx_glr_gallery_miscellaneous_00.logos.py` .. raw:: html
Mpltern logo
.. raw:: html
.. only:: html .. image:: /gallery/miscellaneous/images/thumb/sphx_glr_dirichlet_pdf_thumb.svg :alt: :ref:`sphx_glr_gallery_miscellaneous_dirichlet_pdf.py` .. raw:: html
Dirichlet distribution
.. raw:: html
.. only:: html .. image:: /gallery/miscellaneous/images/thumb/sphx_glr_evolutionary_game_theory_thumb.svg :alt: :ref:`sphx_glr_gallery_miscellaneous_evolutionary_game_theory.py` .. raw:: html
Evolutionary game theory
.. raw:: html
.. only:: html .. image:: /gallery/miscellaneous/images/thumb/sphx_glr_soil_texture_thumb.svg :alt: :ref:`sphx_glr_gallery_miscellaneous_soil_texture.py` .. raw:: html
USDA soil texture classes
.. raw:: html
.. toctree:: :hidden: :includehidden: /gallery/introductory/index.rst /gallery/intermediate/index.rst /gallery/statistics/index.rst /gallery/axis_and_tick/index.rst /gallery/limits/index.rst /gallery/transforms/index.rst /gallery/triangle/index.rst /gallery/miscellaneous/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: gallery_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: gallery_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_