def zoom_effect01(ax1, ax2, xmin, xmax, **kwargs):
 trans1 = blended_transform_factory(ax1.transData, ax1.transAxes)
 trans2 = blended_transform_factory(ax2.transData, ax2.transAxes)
 bbox = Bbox.from_extents(xmin, 0, xmax, 1)
 mybbox1 = TransformedBbox(bbox, trans1)
 mybbox2 = TransformedBbox(bbox, trans2)
 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_effect01 ( ax1 , ax2 , xmin , xmax , ** kwargs ) : trans1 = blended_transform_factory ( ax1 . transData , ax1 . transAxes ) trans2 = blended_transform_factory ( ax2 . transData , ax2 . transAxes ) bbox = Bbox . from_extents ( xmin , 0 , xmax , 1 ) mybbox1 = TransformedBbox ( bbox , trans1 ) mybbox2 = TransformedBbox ( bbox , trans2 ) 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 : the limits of the colored area in both plot axes .