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 notchange the tick labels. 'default' resets the tick positions tothe 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 usingmatplotlib.axis.XAxis.set_ticks_position
#

Control the position and size of a colorbar with Inset Axes
Control the position and size of a colorbar with Inset Axes
On this page