plotnine.facets.labelling.label_context

plotnine.facets.labelling.label_context(label_info: strip_label_details, multi_line: bool = True, sep: str = ': ') strip_label_details[source]

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_infostrip_label_details

Label information

multi_linebool

Whether to place each variable on a separate line

sepstr

Separation between variable name and value

Returns:
outstr

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