plotnine.as_labeller

as_labeller(x=None, default=label_value, multi_line=True)

Coerse to labeller

Parameters

x : callable | dict = None

Object to coerce

default : str | callable = label_value

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

multi_line : bool = True

Whether to place each variable on a separate line

Returns

out : labeller

Labelling function