mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase#
- class mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase(*args, **kwargs)[source]#
Bases:
object
- get_aux_axes(tr=None, viewlim_mode='equal', axes_class=None, **kwargs)[source]#
Add a parasite axes to this host.
Despite this method's name, this should actually be thought of as an
add_parasite_axes
method.Changed in version 3.7: Defaults to same base axes class as host axes.
- Parameters:
- tr
Transform
or None, default: None If a
Transform
, the following relation will hold:parasite.transData = tr + host.transData
. If None, the parasite's and the host'stransData
are unrelated.- viewlim_mode{"equal", "transform", None}, default: "equal"
How the parasite's view limits are set: directly equal to the parent axes ("equal"), equal after application of tr ("transform"), or independently (None).
- axes_classsubclass type of
Axes
, optional The
Axes
subclass that is instantiated. If None, the base class of the host axes is used.- kwargs
Other parameters are forwarded to the parasite axes constructor.
- tr
- twin(aux_trans=None, axes_class=None)[source]#
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.