Spec-Zone.ru › Matplotlib

matplotlib.axis.XAxis.set_ticks_position

XAxis.set_ticks_position(position)[source]

Set the ticks position.

Parameters:
position{'top', 'bottom', 'both', 'default', 'none'}

'both' sets the ticks to appear on both positions, but does not change the tick labels. 'default' resets the tick positions to the default: ticks on both positions, labels at bottom. 'none' can be used if you don't want any ticks. 'none' and 'both' affect only the ticks, not the labels.

Examples using matplotlib.axis.XAxis.set_ticks_position

Colorbar with AxesDivider

Colorbar with AxesDivider

Control the position and size of a colorbar with Inset Axes

Control the position and size of a colorbar with Inset Axes

XKCD

XKCD

Axis ticks

Axis ticks

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.axis.XAxis.set_ticks_position.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API