plotnine.guide_legend
guide_legend(=None,
title=Theme(),
theme=None,
position=None,
direction=False,
reverse=0,
order=None,
nrow=None,
ncol=False,
byrow=dict()
override_aes )
Legend guide
Parameter Attributes
title: Optional[str] = None
-
Title of the guide. Default is the name of the aesthetic or the name specified using
lab
theme: Theme = field(default_factory=Theme)
-
A theme to style the guide. If
None
, the plots theme is used. position: Optional[LegendPosition] = None
-
Where to place the guide relative to the panels.
direction: Optional[Orientation] = None
-
Direction of the guide. The default is depends on
legend_position
. reverse: bool = False
-
bool(x) -> bool
Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
order: int = 0
-
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ‘+’ or ‘-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal. >>> int(‘0b100’, base=0) 4
nrow: Optional[int] = None
-
Number of rows of legends.
ncol: Optional[int] = None
-
Number of columns of legends.
byrow: bool = False
-
bool(x) -> bool
Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
override_aes: dict[str, Any] = field(default_factory=dict)
-
Aesthetic parameters of legend key.