mpl_toolkits.axisartist.axislines.AxisArtistHelper#

class mpl_toolkits.axisartist.axislines.AxisArtistHelper[source]#

Bases: object

Axis helpers should define the methods listed below. The axes argument will be the axes attribute of the caller artist.

# Construct the spine.

def get_line_transform(self, axes):
    return transform

def get_line(self, axes):
    return path

# Construct the label.

def get_axislabel_transform(self, axes):
    return transform

def get_axislabel_pos_angle(self, axes):
    return (x, y), angle

# Construct the ticks.

def get_tick_transform(self, axes):
    return transform

def get_tick_iterators(self, axes):
    # A pair of iterables (one for major ticks, one for minor ticks)
    # that yield (tick_position, tick_angle, tick_label).
    return iter_major, iter_minor
class Fixed(loc, nth_coord=None)[source]#

Bases: _Base

Helper class for a fixed (in the axes coordinate) axis.

nth_coord = 0: x-axis; nth_coord = 1: y-axis.

get_axislabel_pos_angle(axes)[source]#

Return the label reference position in transAxes.

get_label_transform() returns a transform of (transAxes+offset)

get_axislabel_transform(axes)[source]#
get_line(axes)[source]#
get_line_transform(axes)[source]#
get_nth_coord()[source]#
get_tick_transform(axes)[source]#
class Floating(nth_coord, value)[source]#

Bases: _Base

get_line(axes)[source]#
get_nth_coord()[source]#