def __init__(self, *args, **kw): xax = kw.pop("xax", "f") self.xtrans = ReciprocalTransform() # self._aux_trans = btf(ReciprocalTransform(), IdentityTransform()) SubplotHost.__init__(self, *args, **kw) self.parasite = self.twin()
def __init__(self, *args, **kws): # self.xtrans = kws.pop( 'xtrans', IdentityTransform() ) # self.ytrans = kws.pop( 'ytrans', IdentityTransform() ) self.aux_trans = kws.pop("aux_trans", btf(IdentityTransform(), IdentityTransform())) # embed() SubplotHost.__init__(self, *args, **kws) # self.__class__, self # Initialize the parasite axis self.parasite = self.twin(self.aux_trans) # ax2 is responsible for "top" axis and "right" axis