parasite_axes.py 557 B

123456789101112131415161718
  1. from __future__ import (absolute_import, division, print_function,
  2. unicode_literals)
  3. from mpl_toolkits.axes_grid1.parasite_axes import (
  4. host_axes_class_factory, parasite_axes_class_factory,
  5. parasite_axes_auxtrans_class_factory, subplot_class_factory)
  6. from .axislines import Axes
  7. ParasiteAxes = parasite_axes_class_factory(Axes)
  8. ParasiteAxesAuxTrans = \
  9. parasite_axes_auxtrans_class_factory(axes_class=ParasiteAxes)
  10. HostAxes = host_axes_class_factory(axes_class=Axes)
  11. SubplotHost = subplot_class_factory(HostAxes)