plotnine.facets.labelling.labeller

plotnine.facets.labelling.labeller(rows=None, cols=None, multi_line=True, default=<function label_value>, **kwargs)[source]

Return a labeller function

Parameters:
rows : str | function | None

How to label the rows

cols : str | function | None

How to label the columns

multi_line : bool

Whether to place each variable on a separate line

default : function | str

Fallback labelling function. If it is a string, it should be the name of one the labelling functions provided by plotnine.

kwargs : dict

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

Returns:
out : function

Function to do the labelling