5.8 Module graph.axis.positioner: Positioners

The position of an axis is defined by an instance of a class providing the following methods:

vbasepath( v1=None, v2=None)
Returns a path instance for the base path. v1 and v2 define the axis range in graph coordinates the base path should cover.

vgridpath( v)
Returns a path instance for the grid path at position v in graph coordinates. The method might return None when no grid path is available (for an axis along a path for example).

vtickpoint_pt( v)
Returns the position of v in graph coordinates as a tuple (x, y) in points.

vtickdirection( v)
Returns the direction of a tick at v in graph coordinates as a tuple (dx, dy). The tick direction points inside of the graph.

The module contains several implementations of those positioners, but since the positioner instances are created by graphs etc. as needed, the details are not interesting for the average PyX user.