Skip to main content
Ctrl+K
Logo image

Site Navigation

  • Installation
  • Tutorials
  • Examples
  • Releases
  • Publications
  • Tips

Site Navigation

  • Installation
  • Tutorials
  • Examples
  • Releases
  • Publications
  • Tips

Section Navigation

  • Introductory
    • Line and curve
    • Scatter
    • Contour
    • Pseudocolor
    • Normalization
    • Span
    • Text
    • Polygon
    • Quiver
    • Grid
    • Axis labels
    • Triangular grid
    • AxLine
    • Legend
  • Intermediate
    • With normal Matplotlib plots
    • Style sheets
    • Inset
  • Statistics
    • HexBin
    • TriBin
    • Binned & scatter
  • Axis and Tick
    • 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
    • Cartesian coordinates
    • Ticks
    • Plot fixed onto triangle
    • Arrows along axes
  • Triangle
    • Aspect
    • Triangle rotation
    • Arbitrary triangle
  • Miscellaneous
    • Mpltern logo
    • Dirichlet distribution
    • Evolutionary game theory
    • USDA soil texture classes
  • Examples
  • Introductory
  • Axis labels

Note

Go to the end to download the full example code

Axis labels#

Axis labels can be given using e.g. ax.set_tlabel. For more detailed control, see Axis and Tick.

10.axis labels
import matplotlib.pyplot as plt
import mpltern  # noqa: F401


ax = plt.subplot(projection='ternary')

ax.set_tlabel('Top')
ax.set_llabel('Left')
ax.set_rlabel('Right')

plt.show()

Download Python source code: 10.axis_labels.py

Download Jupyter notebook: 10.axis_labels.ipynb

Gallery generated by Sphinx-Gallery

previous

Grid

next

Triangular grid

Show Source

© Copyright 2019-2023 Yuji Ikeda.

Created using Sphinx 5.3.0.

Built with the PyData Sphinx Theme 0.13.3.