matplotlib 3.5.1

Parameters
autofmt_xdate(self, bottom=0.2, rotation=30, ha='right', which='major')

Parameters

bottom : float, default: 0.2

The bottom of the subplots for subplots_adjust .

rotation : float, default: 30 degrees

The rotation angle of the xtick labels in degrees.

ha : {'left', 'center', 'right'}, default: 'right'

The horizontal alignment of the xticklabels.

which : {'major', 'minor', 'both'}, default: 'major'

Selects which ticklabels to rotate.

Date ticklabels often overlap, so it is useful to rotate them and right align them. Also, a common use case is a number of subplots with shared x-axis where the x-axis is date data. The ticklabels are often long, and it helps to rotate them on the bottom subplot and turn them off on other subplots, as well as turn off xlabels.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/figure.py#250
type: <class 'function'>
Commit: