plotnine.guides.guide_legend

class plotnine.guides.guide_legend(**kwargs)[source]

Legend guide

Parameters:
nrow : int

Number of rows of legends.

ncol : int

Number of columns of legends.

byrow : bool

Whether to fill the legend row-wise or column-wise.

keywidth : float

Width of the legend key.

keyheight : float

Height of the legend key.

kwargs : dict

Parameters passed on to guide