mpl_toolkits.axisartist.floating_axes.GridHelperCurveLinear¶
-
class
mpl_toolkits.axisartist.floating_axes.
GridHelperCurveLinear
(aux_trans, extremes, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[源代码]¶ 基类:
mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear
辅助坐标:从源(曲线)坐标到目标(直线)坐标的转换。MPL变换的一个实例(应定义逆变换)或两个可调用对象的元组,定义变换及其逆变换。可调用文件需要接受源坐标数组的两个参数,并且应该返回两个目标坐标。
e.g.,
x2, y2 = trans(x1, y1)
-
__init__
(aux_trans, extremes, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[源代码]¶ 辅助坐标:从源(曲线)坐标到目标(直线)坐标的转换。MPL变换的一个实例(应定义逆变换)或两个可调用对象的元组,定义变换及其逆变换。可调用文件需要接受源坐标数组的两个参数,并且应该返回两个目标坐标。
e.g.,
x2, y2 = trans(x1, y1)
-
__module__
= 'mpl_toolkits.axisartist.floating_axes'¶
-