matplotlib 3.5.1

Other ParametersParametersBackRef
tick_params(self, axis='both', **kwargs)

Tick properties that are not explicitly set using the keyword arguments remain unchanged unless reset is True.

Other Parameters

direction : {'in', 'out', 'inout'}

Puts ticks inside the axes, outside the axes, or both.

length : float

Tick length in points.

width : float

Tick width in points.

color : color

Tick color.

pad : float

Distance in points between tick and label.

labelsize : float or str

Tick label font size in points or as a string (e.g., 'large').

labelcolor : color

Tick label color.

colors : color

Tick color and label color.

zorder : float

Tick and label zorder.

bottom, top, left, right : bool

Whether to draw the respective ticks.

labelbottom, labeltop, labelleft, labelright : bool

Whether to draw the respective tick labels.

labelrotation : float

Tick label rotation

grid_color : color

Gridline color.

grid_alpha : float

Transparency of gridlines: 0 (transparent) to 1 (opaque).

grid_linewidth : float

Width of gridlines in points.

grid_linestyle : str

Any valid .Line2D line style spec.

Parameters

axis : {'x', 'y', 'both'}, default: 'both'

The axis to which the parameters are applied.

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

The group of ticks to which the parameters are applied.

reset : bool, default: False

Whether to reset the ticks to defaults before updating them.

Change the appearance of ticks, tick labels, and gridlines.

Examples

ax.tick_params(direction='out', length=6, width=2, colors='r',

grid_color='r', grid_alpha=0.5)

This will make all major ticks be red, pointing out of the box, and with dimensions 6 points by 2 points. Tick labels will also be red. Gridlines will be red and translucent.

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.pyplot.subplots matplotlib.figure.FigureBase.subplots

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/axes/_base.py#3349
type: <class 'function'>
Commit: