W3cubDocs

/Matplotlib 3.5

matplotlib.axis.YAxis.set_ticks_position

YAxis.set_ticks_position(position)[source]

Set the ticks position.

Parameters
position{'left', 'right', '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 left. '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.YAxis.set_ticks_position

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