Axes.
tick_params
(axis='both', **kwargs)¶Change the appearance of ticks, tick labels, and gridlines.
Parameters: | axis : {‘x’, ‘y’, ‘both’}, optional
|
---|---|
Other Parameters: | |
axis : {‘x’, ‘y’, ‘both’}
reset : bool
which : {‘major’, ‘minor’, ‘both’}
direction : {‘in’, ‘out’, ‘inout’}
length : float
width : float
color : color
pad : float
labelsize : float or str
labelcolor : color
colors : color
zorder : float
bottom, top, left, right : bool
labelbottom, labeltop, labelleft, labelright : bool
labelrotation : float
grid_color : color
grid_alpha : float
grid_linewidth : float
grid_linestyle : string
|
Examples
Usage
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.