plotnine.facets.labelling.as_labeller

plotnine.facets.labelling.as_labeller(x: Optional[CanBeStripLabellingFunc] = None, default: CanBeStripLabellingFunc = <function label_value>, multi_line: bool = True) labeller[source]

Coerse to labeller

Parameters:
xfunction | dict

Object to coerce

defaultstr | function

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

multi_linebool

Whether to place each variable on a separate line

Returns:
outlabeller

Labelling function