def zoom_effect02(ax1, ax2, **kwargs):
 tt = (ax1.transScale + (ax1.transLimits + ax2.transAxes))
 trans = blended_transform_factory(ax2.transData, tt)
 mybbox1 = ax1.bbox
 mybbox2 = TransformedBbox(ax1.viewLim, trans)
 prop_patches = kwargs.copy()
 prop_patches['ec'] = 'none'
 prop_patches['alpha'] = 0.2
 (c1, c2, bbox_patch1, bbox_patch2, p) = connect_bbox(mybbox1, mybbox2, loc1a=3, loc2a=2, loc1b=4, loc2b=1, prop_lines=kwargs, prop_patches=prop_patches)
 ax1.add_patch(bbox_patch1)
 ax2.add_patch(bbox_patch2)
 ax2.add_patch(c1)
 ax2.add_patch(c2)
 ax2.add_patch(p)
 return (c1, c2, bbox_patch1, bbox_patch2, p)

def zoom_effect02 ( ax1 , ax2 , ** kwargs ) : tt = ( ax1 . transScale + ( ax1 . transLimits + ax2 . transAxes ) ) trans = blended_transform_factory ( ax2 . transData , tt ) mybbox1 = ax1 . bbox mybbox2 = TransformedBbox ( ax1 . viewLim , trans ) prop_patches = kwargs . copy ( ) prop_patches [ 'ec' ] = 'none' prop_patches [ 'alpha' ] = 0.2 ( c1 , c2 , bbox_patch1 , bbox_patch2 , p ) = connect_bbox ( mybbox1 , mybbox2 , loc1a = 3 , loc2a = 2 , loc1b = 4 , loc2b = 1 , prop_lines = kwargs , prop_patches = prop_patches ) ax1 . add_patch ( bbox_patch1 ) ax2 . add_patch ( bbox_patch2 ) ax2 . add_patch ( c1 ) ax2 . add_patch ( c2 ) ax2 . add_patch ( p ) return ( c1 , c2 , bbox_patch1 , bbox_patch2 , p )
ax1 : the main axes ax1 : the zoomed axes similar to zoom_effect01 .