plotnine.geom_label

geom_label(mapping=None, data=None, kwargs={})

Textual annotations with a background

{usage}

Parameters

boxstyle : str = "round"

Options are:

'circle'
'darrow'
'larrow'
'rarrow'
'round '
'round4'
'roundtooth'
'sawtooth'
'square'
boxcolor

Color of box around the text. If None, the color is the same as the text.

label_padding : float = 0.25

Amount of padding

label_r : float = 0.25

Rounding radius of corners.

label_size : float = 0.7

Linewidth of the label boundary.

tooth_size : float = None

Size of the roundtooth or sawtooth if they are the chosen boxstyle. The default depends on Matplotlib

See Also

geom_text

For documentation of the parameters. BoxStyle for the parameters that affect the boxstyle.