Axes.
tick_params
(axis='both', **kwargs)¶Change the appearance of ticks and tick labels.
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 or {‘on’, ‘off’}
labelbottom, labeltop, labelleft, labelright : bool or {‘on’, ‘off’}
|
Examples
Usage
ax.tick_params(direction='out', length=6, width=2, colors='r')
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.