lair.plotter.format_radial_axis#

lair.plotter.format_radial_axis(ax, x, scale_angle)[source]#

Format radial axis of polar plot.

Parameters:
  • ax (PolarAxes) – Axis to format.

  • x (str) – Label of the radial axis.

  • scale_angle (float | None) – Angle to position the label.

Returns:

None

Return type:

None

See also

create_polar_ax

The axis it formats.

polarPlot

Calls it.

Examples

>>> from lair.plotter import create_polar_ax, format_radial_axis
>>> ax = create_polar_ax()
>>> ax.set_rlim(0, 10)
(0.0, 10.0)
>>> format_radial_axis(ax, "wind speed [m/s]", scale_angle=45)
../_images/lair-plotter-format_radial_axis-1.png