Module: annotation

mpltools.annotation.slope_marker(origin, slope) Plot triangular slope marker labeled with slope.

slope_marker

mpltools.annotation.slope_marker(origin, slope, invert=False, size_frac=0.10000000000000001, pad_frac=0.20000000000000001, text_kwargs=None, poly_kwargs=None, ax=None)

Plot triangular slope marker labeled with slope.

Parameters :

origin : 2-tuple

(x, y) coordinates for the slope.

slope : float or 2-tuple

Slope of marker. If float, a single slope label is printed; if tuple, you can specify the (rise, run) of the slope and 2 labels are printed.

invert : bool

If True, hypotenuse is on the left (i.e. | or /|). If False, hypotenuse is on the right (i.e. |/ or |).

size_frac : float

Fraction of the xaxis length used to determine the size of the slope marker. Should be less than 1.

pad_frac : float

Fraction of the slope marker size used to pad text labels.

fontsize : float

Font size of slope labels.

text_kwargs : dict

Keyword arguments passed to matplotlib.text.Text.

poly_kwargs : dict

Keyword arguments passed to matplotlib.patches.Polygon.

Table Of Contents

Next topic

Module: color