Skip to main content
Ctrl+K
mpltern 0.0.post1.dev50 documentation - Home mpltern 0.0.post1.dev50 documentation - Home
  • Installation
  • Tutorials
  • Examples
  • Releases
  • Publications
  • Tips
  • GitHub
  • Installation
  • Tutorials
  • Examples
  • Releases
  • Publications
  • Tips
  • GitHub

mpltern: Ternary plots with Matplotlib#

PyPI version Downloads Conda Version Conda Downloads

GitHubActions Codecov

DOI

Mpltern is a Python plotting library based on Matplotlib specifically designed for ternary plots.

  • Direct dependence on Matplotlib only

  • Compatible with multiple Matplotlib versions with a high test coverage

  • Many plotting styles with similar method names to those in Matplotlib

  • Automatic positioning of tick markers, tick labels, and axis labels consistent with Matplotlib

  • tight_layout and constrained_layout

  • Easy combination with normal Matplotlib plots

  • Easy application of style sheets

  • Interactive in, e.g., Jupyter notebooks

https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_01.style_sheets_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_01.hexagonal_limits_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_soil_texture_001.svg
https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_98.colored_axes_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_21.tick-locators_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_evolutionary_game_theory_001.svg
https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_01.scatter_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_08.quiver_001.svg
https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_02.contour_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_03.pseudocolor_001.svg
https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_with_scatter_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_10.tick_position_001.svg
https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_01.triangle_rotation_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_dirichlet_pdf_001.svg

Installation#

See the install documentation.

Basic Usage#

See the basic usage documentation.

See more examples in the gallery.

How to Cite mpltern#

Please cite mpltern via the DOI if mpltern contributes to a scientific publication.

Matplotlib should also be acknowledged when using mpltern.

Author#

Yuji Ikeda (University of Stuttgart, Germany)

  • GitHub

  • Google Scholar

  • ResearchGate

next

Installation

On this page
  • Installation
  • Basic Usage
  • How to Cite mpltern
  • Author
Show Source

© Copyright 2019-2026 Yuji Ikeda.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.19.0.