mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase

class mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase(*args, **kwargs)[源代码]

基类:object

__dict__ = mappingproxy({'__module__': 'mpl_toolkits.axes_grid1.parasite_axes', '__init__': <function HostAxesBase.__init__>, 'get_aux_axes': <function HostAxesBase.get_aux_axes>, '_get_legend_handles': <function HostAxesBase._get_legend_handles>, 'draw': <function HostAxesBase.draw>, 'cla': <function HostAxesBase.cla>, 'pick': <function HostAxesBase.pick>, 'twinx': <function HostAxesBase.twinx>, '_remove_twinx': <function HostAxesBase._remove_twinx>, 'twiny': <function HostAxesBase.twiny>, '_remove_twiny': <function HostAxesBase._remove_twiny>, 'twin': <function HostAxesBase.twin>, 'get_tightbbox': <function HostAxesBase.get_tightbbox>, '__dict__': <attribute '__dict__' of 'HostAxesBase' objects>, '__weakref__': <attribute '__weakref__' of 'HostAxesBase' objects>, '__doc__': None, '__annotations__': {}})
__init__(*args, **kwargs)[源代码]

初始化自身。请参阅帮助(键入(self))以获得准确的签名。

__module__ = 'mpl_toolkits.axes_grid1.parasite_axes'
__weakref__

对象的弱引用列表(如果已定义)

cla()[源代码]
draw(renderer)[源代码]
get_aux_axes(tr, viewlim_mode='equal', axes_class=<class 'mpl_toolkits.axes_grid1.parasite_axes.AxesParasite'>)[源代码]
get_tightbbox(renderer, call_axes_locator=True, bbox_extra_artists=None)[源代码]
pick(mouseevent)[源代码]
twin(aux_trans=None, axes_class=None)[源代码]

创建没有共享轴的双轴。

self在左、下轴上有记号,而返回的轴在上、右轴上有记号。

twinx(axes_class=None)[源代码]

创建一个共享x轴但独立y轴的双轴。

y轴上的记号已返回到右y轴上。

twiny(axes_class=None)[源代码]

创建一对具有共享y轴但独立x轴的双轴。

self的x轴在底部有记号,返回的轴在顶部有记号。