Skip to main content

PyPI version Downloads Conda Version Conda Downloads

GitHubActions CircleCI

DOI

Mpltern (https://yuzie007.github.io/mpltern) is a Python plotting library based on Matplotlib specifically designed for ternary plots. Mpltern is implemented as a new projection for Matplotlib, with introducing e.g. new Transform classes for ternary plots. The followings are the features of mpltern when compared with other ternary-plot libraries:

  • Many things one expects essentially possible using Matplotlib can be done also in mpltern, without e.g. ternary-to-Cartesian conversions on the user side

  • For the same plotting styles, mpltern offers the same or very similar method names as Matplotlib does; you do not need to learn many new commands in addition to those for Matplotlib

  • Tick markers, tick labels, and axis labels are automatically positioned with reasonable paddings inherited from Matplotlib; this allows users e.g. faster production of ternary plots with publication quality

  • tight_layout and constrained_layout

  • Easy combination with normal Matplotlib plots

  • Easy application of seaborn styles

  • Working also in Matplotlib interactive modes inside e.g. Jupyter notebooks

https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_with_seaborn_styles_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_05.inset_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_07.polygon_001.svg https://mpltern.readthedocs.io/en/latest/_images/sphx_glr_02.arbitrary_triangle_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_tick_position_001.svg

Installation

See the install documentation.

Basic Usage

See the basic usage documentation.

See more examples in the gallery.

How to Cite mpltern

The author requests to cite mpltern via the DOI above if mpltern contributes to a scientific publication. Of course, Matplotlib should be also very much acknowledged when using mpltern.

Author

Yuji Ikeda (GitHub, Google Scholar, ResearchGate)

Metadata

Release files for mpltern 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mpltern 0.5.0
File Size Uploaded
mpltern-0.5.0.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mpltern 0.5.0
File Interpreter ABI Platform
mpltern-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / mpltern-0.5.0.tar.gz

Download URL mpltern-0.5.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ef14836da27927b121708aa7b0d5ba1bd72775c6757b976cdbc2a2b39a780ad3
BLAKE2b-256 checksum
How to use checksums
f130a084e2e78bc93c8c5a62ab74acdfb6f5f86bc74fcd6b024b27bd07e70002
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release files / mpltern-0.5.0-py3-none-any.whl

Download URL mpltern-0.5.0-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15f59008f1ba42e8a23c50189f1d55745364e88c7d694e3b852431b2b4baa196
BLAKE2b-256 checksum
How to use checksums
36aa84b30750f042f45abb88204d2af06472fd350a61f34b48a69b8b984771ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page