plotnine.label_context

label_context(label_info, multi_line=True, sep=": ")

Create an unabiguous label string

If facetting over a single variable, label_value is used, if two or more variables then label_both is used.

Parameters

label_info : strip_label_details

Label information

multi_line : bool = True

Whether to place each variable on a separate line

sep : str = ": "

Separation between variable name and value

Returns

out : str

Concatenated label values (or pairs of variable names & values)