@docstring.dedent_interpd
def mark_inset(parent_axes, inset_axes, loc1, loc2, **kwargs):
 rect = TransformedBbox(inset_axes.viewLim, parent_axes.transData)
 pp = BboxPatch(rect, fill=False, **kwargs)
 parent_axes.add_patch(pp)
 p1 = BboxConnector(inset_axes.bbox, rect, loc1=loc1, **kwargs)
 inset_axes.add_patch(p1)
 p1.set_clip_on(False)
 p2 = BboxConnector(inset_axes.bbox, rect, loc1=loc2, **kwargs)
 inset_axes.add_patch(p2)
 p2.set_clip_on(False)
 return (pp, p1, p2)

@ docstring . dedent_interpd def mark_inset ( parent_axes , inset_axes , loc1 , loc2 , ** kwargs ) : rect = TransformedBbox ( inset_axes . viewLim , parent_axes . transData ) pp = BboxPatch ( rect , fill = False , ** kwargs ) parent_axes . add_patch ( pp ) p1 = BboxConnector ( inset_axes . bbox , rect , loc1 = loc1 , ** kwargs ) inset_axes . add_patch ( p1 ) p1 . set_clip_on ( False ) p2 = BboxConnector ( inset_axes . bbox , rect , loc1 = loc2 , ** kwargs ) inset_axes . add_patch ( p2 ) p2 . set_clip_on ( False ) return ( pp , p1 , p2 )
draw a box to mark the location of an area represented by an inset axes .