Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2734a2a

Browse files
committed
axes_zoom_effect.py modified to use floats (instead of strings) for alpha values
svn path=/trunk/matplotlib/; revision=7300
1 parent 9cfa335 commit 2734a2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/pylab_examples/axes_zoom_effect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def zoom_effect01(ax1, ax2, xmin, xmax, **kwargs):
5151

5252
prop_patches=kwargs.copy()
5353
prop_patches["ec"]="none"
54-
prop_patches["alpha"]="0.2"
54+
prop_patches["alpha"]=0.2
5555

5656
c1, c2, bbox_patch1, bbox_patch2, p = \
5757
connect_bbox(mybbox1, mybbox2,
@@ -84,7 +84,7 @@ def zoom_effect02(ax1, ax2, **kwargs):
8484

8585
prop_patches=kwargs.copy()
8686
prop_patches["ec"]="none"
87-
prop_patches["alpha"]="0.2"
87+
prop_patches["alpha"]=0.2
8888

8989
c1, c2, bbox_patch1, bbox_patch2, p = \
9090
connect_bbox(mybbox1, mybbox2,

0 commit comments

Comments
 (0)