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
rowsstr | function | None

How to label the rows

colsstr | function | None

How to label the columns

multi_linebool

Whether to place each variable on a separate line

defaultfunction | str

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

kwargsdict

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

Returns
outfunction

Function to do the labelling