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:
GridHelperBase
- Parameters:
- aux_trans
Transform
or tuple[Callable, Callable] The transform from curved coordinates to rectilinear coordinate: either a
Transform
instance (which provides also its inverse), or a pair of callables(trans, inv_trans)
that define the transform and its inverse. The callables should have signature:x_rect, y_rect = trans(x_curved, y_curved) x_curved, y_curved = inv_trans(x_rect, y_rect)
- extreme_finder
- grid_locator1, grid_locator2
Grid locators for each axis.
- tick_formatter1, tick_formatter2
Tick formatters for each axis.
- aux_trans
- get_gridlines(which='major', axis='both')[source]#
Return list of grid lines as a list of paths (list of points).
- Parameters:
- which{"both", "major", "minor"}
- axis{"both", "x", "y"}
Examples using mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear
#
axis_direction demo
Curvilinear grid demo
Demo CurveLinear Grid2
floating_axes features
floating_axis demo
Simple axis pad