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

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

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).

__init__(self, ticksize, tick_out=False, *, axis=None, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'mpl_toolkits.axisartist.axis_artist'
draw(self, renderer)[source]

Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (Artist.get_visible returns False).

rendererRendererBase subclass.


This method is overridden in the Artist subclasses.


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 the underlying artist that actually defines some properties (e.g., color) of this artist.


Return whether ticks are drawn inside or outside the axes.


Return length of the ticks in points.

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

Set whether ticks are drawn inside or outside the axes.

set_ticksize(self, ticksize)[source]

Set length of the ticks in points.

Examples using mpl_toolkits.axisartist.axis_artist.Ticks