mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase¶
- class mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase(*args, **kwargs)¶
Bases:
object- clear()¶
- draw(renderer)¶
- get_aux_axes(tr=None, viewlim_mode='equal', axes_class=<class 'mpl_toolkits.axes_grid1.mpl_axes.Axes'>)¶
Add a parasite axes to this host.
Despite this method's name, this should actually be thought of as an
add_parasite_axesmethod.tr may be
Transform, in which case the following relation will hold:parasite.transData = tr + host.transData. Alternatively, it may be None (the default), no special relationship will hold between the parasite's and the host'stransData.
- get_tightbbox(renderer=None, call_axes_locator=True, bbox_extra_artists=None)¶
- pick(mouseevent)¶
- twin(aux_trans=None, axes_class=None)¶
Create a twin of Axes with no shared axis.
While self will have ticks on the left and bottom axis, the returned axes will have ticks on the top and right axis.
- twinx(axes_class=None)¶
Create a twin of Axes with a shared x-axis but independent y-axis.
The y-axis of self will have ticks on the left and the returned axes will have ticks on the right.
- twiny(axes_class=None)¶
Create a twin of Axes with a shared y-axis but independent x-axis.
The x-axis of self will have ticks on the bottom and the returned axes will have ticks on the top.