mpl_toolkits.axisartist.floating_axes.ExtremeFinderFixed

class mpl_toolkits.axisartist.floating_axes.ExtremeFinderFixed(extremes)[源代码]

基类:mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple

这个子类总是返回相同的边界框。

参数:
extremes(浮动,浮动,浮动,浮动)

此辅助对象始终返回的边界框。

__call__(transform_xy, x1, y1, x2, y2)[源代码]

计算通过应用 transform_xy 到由分隔的框 (x1, y1, x2, y2) .

预期用途是 (x1, y1, x2, y2) 有坐标,和坐标轴 transform_xy 是从轴坐标到数据坐标的转换;然后此方法返回跨实际轴的数据坐标范围。

计算是通过抽样来完成的 nx * ny 等间距点 (x1, y1, x2, y2) 框并用极值坐标找到结果点;然后添加一些填充以考虑有限采样。

因为每个取样步骤涵盖了 1/nx1/ny ,填充是通过将极值坐标覆盖的跨度展开这些分数来计算的。

__init__(extremes)[源代码]

这个子类总是返回相同的边界框。

参数:
extremes(浮动,浮动,浮动,浮动)

此辅助对象始终返回的边界框。

__module__ = 'mpl_toolkits.axisartist.floating_axes'

使用实例 mpl_toolkits.axisartist.floating_axes.ExtremeFinderFixed