Examples#
This gallery contains examples of mpltern.
Introductory#
Line and curve
Scatter
Contour
Pseudocolor
Normalization
Span
Text
Polygon
Quiver
Grid
Axis labels
Triangular grid
AxLine
Legend
Intermediate#
Statistics#
Axis and Tick#
The examples below show how to control tick markers, tick labels, and axis labels.
Axis-label position
Axis-label rotation
Tick position
Tick direction
Tick rotation
Tick formatters
Tick locators
Manual tick positions
Manual tick labels
Colored axes
Tick labels inside triangle
Ternary Limits#
Triangular limits
Hexagonal limits
Plotting region fitting
Transforms#
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.
Cartesian coordinates
Ticks
Plot fixed onto triangle
Arrows along axes
Triangle#
Miscellaneous#
Mpltern logo
Dirichlet distribution
Evolutionary game theory
USDA soil texture classes