Axis.get_ticklocs(*, minor=False)[source]#

Return this Axis' tick locations in data coordinates.

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

minorbool, default: False

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

numpy array of tick locations

Examples using matplotlib.axis.Axis.get_ticklocs#

Artist tutorial

Artist tutorial

Artist tutorial