mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear

class mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear(aux_trans, extreme_finder=None, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]

Bases: mpl_toolkits.axisartist.axislines.GridHelperBase

aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate. An instance of MPL's Transform (inverse transform should be defined) or a tuple of two callable objects which defines the transform and its inverse. The callables need take two arguments of array of source coordinates and should return two target coordinates.

e.g., x2, y2 = trans(x1, y1)

__init__(self, aux_trans, extreme_finder=None, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]

aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate. An instance of MPL's Transform (inverse transform should be defined) or a tuple of two callable objects which defines the transform and its inverse. The callables need take two arguments of array of source coordinates and should return two target coordinates.

e.g., x2, y2 = trans(x1, y1)

__module__ = 'mpl_toolkits.axisartist.grid_helper_curvelinear'
get_gridlines(self, which='major', axis='both')[source]

Return list of grid lines as a list of paths (list of points).

which : "major" or "minor" axis : "both", "x" or "y"

get_tick_iterator(self, nth_coord, axis_side, minor=False)[source]
new_fixed_axis(self, loc, nth_coord=None, axis_direction=None, offset=None, axes=None)[source]
new_floating_axis(self, nth_coord, value, axes=None, axis_direction='bottom')[source]
update_grid_finder(self, aux_trans=None, **kw)[source]

Examples using mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear