plotnine.labeller

labeller(
    rows=None, cols=None, multi_line=True, default="label_value", kwargs={}
)

Facet Strip Labelling

When called with strip_label_details knows how to alter the strip labels along either dimension.

Parameters

rows : str | callable = None

How to label the rows

cols : str | callable = None

How to label the columns

multi_line : bool = True

Whether to place each variable on a separate line

default : str | callable = "label_value"

Fallback labelling function. If it is a string, it should be one of ["label_value", "label_both", "label_context"].

kwargs : dict = {}

{variable name : function | string} pairs for renaming variables. A function to rename the variable or a string name.