uvex_transients.phase_space.plotting.core.label_once#
- uvex_transients.phase_space.plotting.core.label_once(ax, contours, fmt) None[source]#
Label each contour level once, at the middle of its longest segment.
The default placement repeats a label along a line, and lines that run almost vertically through a log-scaled panel then collect overlapping labels.
- Parameters:
ax (
matplotlib.axes.Axes) – The axes the contours are on.contours (
matplotlib.contour.QuadContourSet) – The contours to label.fmt (
strorcallable) – The format of a label, as for matplotlib.axes.Axes.clabel.