mpl_toolkits.axes_grid1.parasite_axes.HostAxesBase#

classmpl_toolkits.axes_grid1.parasite_axes.HostAxesBase(*args,**kwargs)[source]#

Bases:object

clear()[source]#
draw(renderer)[source]#
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 anadd_parasite_axes method.

Changed in version 3.7:Defaults to same base axes class as host axes.

Parameters:
trTransform or None, default: None

If aTransform, 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 theparent axes ("equal"), equal after application oftr("transform"), or independently (None).

axes_classsubclass type ofAxes, optional

TheAxes subclass that is instantiated. If None, the baseclass of the host axes is used.

**kwargs

Other parameters are forwarded to the parasite axes constructor.

get_tightbbox(renderer=None,*,call_axes_locator=True,bbox_extra_artists=None)[source]#
pick(mouseevent)[source]#
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 returnedaxes will have ticks on the top and right axis.

twinx(axes_class=None)[source]#

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 axeswill have ticks on the right.

twiny(axes_class=None)[source]#

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 axeswill have ticks on the top.

Examples usingmpl_toolkits.axes_grid1.parasite_axes.HostAxesBase#

Parasite Simple2

Parasite Simple2

Curvilinear grid demo

Curvilinear grid demo

floating_axes features

floating_axes features

floating_axis demo

floating_axis demo

Parasite Axes demo

Parasite Axes demo