plotnine.facets.labelling.labeller¶
- class plotnine.facets.labelling.labeller(rows: CanBeStripLabellingFunc | None = None, cols: CanBeStripLabellingFunc | None = None, multi_line: bool = True, default: CanBeStripLabellingFunc = 'label_value', **kwargs: Callable[[str], str])[source]¶
Facet Strip Labelling
When called with strip_label_details knows how to alter the strip labels along either dimension.
- Parameters:
- rows
str
|function
|None
How to label the rows
- cols
str
|function
|None
How to label the columns
- multi_linebool
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.
- rows