mpl_toolkits.axes_grid1.parasite_axes.host_subplot

mpl_toolkits.axes_grid1.parasite_axes.host_subplot(*args, axes_class=<class 'mpl_toolkits.axes_grid1.mpl_axes.Axes'>, figure=None, **kwargs)[source]

Create a subplot that can act as a host to parasitic axes.

Parameters:
figurematplotlib.figure.Figure

Figure to which the subplot will be added. Defaults to the current figure pyplot.gcf().

*args, **kwargs

Will be passed on to the underlying Axes object creation.

Examples using mpl_toolkits.axes_grid1.parasite_axes.host_subplot