mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase
- class mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase(*args, **kwargs)
Bases:
object- clear()
Bases: object
Add a parasite axes to this host.
Despite this method's name, this should actually be thought of as an
add_parasite_axes method.
Transform or None, default: NoneIf a Transform, the following relation will hold:
parasite.transData = tr + host.transData.
If None, the parasite's and the host's transData are unrelated.
How the parasite's view limits are set: directly equal to the parent axes ("equal"), equal after application of tr ("transform"), or independently (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.
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.
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.
mpl_toolkits.axes_grid1.parasite_axes.HostAxesBaseAxes, optionalThe Axes subclass that is instantiated. If None, the base
class of the host axes is used.
Other parameters are forwarded to the parasite axes constructor.