matplotlib.axes.Axes.get_xticks#

Axes.get_xticks(*,minor=False)[source]#

Return the xaxis' tick locations in data coordinates.

The locations are not clipped to the current axis limits and hencemay contain locations that are not visible in the output.

Parameters:
minorbool, default: False

True to return the minor tick directions,False to return the major tick directions.

Returns:
array of tick locations
On this page