Change the appearance of ticks, tick labels, and gridlines.
Tick properties that are not explicitly set using the keyword arguments remain unchanged unless reset is True. For the current style settings, see Axis.get_tick_params
.
The axis to which the parameters are applied.
The group of ticks to which the parameters are applied.
Whether to reset the ticks to defaults before updating them.
Puts ticks inside the Axes, outside the Axes, or both.
Tick length in points.
Tick width in points.
Tick color.
Distance in points between tick and label.
Tick label font size in points or as a string (e.g., 'large').
Tick label color.
Tick label font.
Tick color and label color.
Tick and label zorder.
Whether to draw the respective ticks.
Whether to draw the respective tick labels.
Tick label rotation
Gridline color.
Transparency of gridlines: 0 (transparent) to 1 (opaque).
Width of gridlines in points.
Any valid Line2D
line style spec.
Notes
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.
matplotlib.pyplot.tick_params
#
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4