You are reading an old version of the documentation (v3.1.0). For the latest version see
Version 3.1.0
Fork me on GitHub


class mpl_toolkits.axisartist.axis_artist.Ticks(ticksize, tick_out=False, *, axis=None, **kwargs)[source]

Bases: matplotlib.lines.Line2D, mpl_toolkits.axisartist.axis_artist.AttributeCopier

Ticks are derived from Line2D, and note that ticks themselves are markers. Thus, you should use set_mec, set_mew, etc.

To change the tick size (length), you need to use set_ticksize. To change the direction of the ticks (ticks are in opposite direction of ticklabels by default), use set_tick_out(False).

draw(self, renderer)[source]

Draw the Artist using the given renderer.

This method will be overridden in the Artist subclasses. Typically, it is implemented to not have any effect if the Artist is not visible (Artist.get_visible is False).

renderer : RendererBase subclass.

Return the line color.

See also set_color.


Return the marker edge color.

See also set_markeredgecolor.


Return the marker edge width in points.

See also set_markeredgewidth.


Return True if the tick will be rotated by 180 degree.


Return length of the ticks in points.

set_locs_angles(self, locs_angles)[source]
set_tick_out(self, b)[source]

set True if tick need to be rotated by 180 degree.

set_ticksize(self, ticksize)[source]

set length of the ticks in points.