@@ -54,8 +54,7 @@ def draw(self, renderer=None):
54
54
arr = plt .imread (get_sample_data ("grace_hopper.jpg" ))
55
55
56
56
text_path = TextPath ((0 , 0 ), "!?" , size = 150 )
57
- p = PathClippedImagePatch (text_path , arr , ec = "k" ,
58
- transform = IdentityTransform ())
57
+ p = PathClippedImagePatch (text_path , arr , ec = "k" )
59
58
60
59
# make offset box
61
60
offsetbox = AuxTransformBox (IdentityTransform ())
@@ -73,10 +72,8 @@ def draw(self, renderer=None):
73
72
]:
74
73
text_path = TextPath ((0 , 0 ), string , size = 20 , usetex = usetex )
75
74
76
- p1 = PathPatch (text_path , ec = "w" , lw = 3 , fc = "w" , alpha = 0.9 ,
77
- transform = IdentityTransform ())
78
- p2 = PathPatch (text_path , ec = "none" , fc = "k" ,
79
- transform = IdentityTransform ())
75
+ p1 = PathPatch (text_path , ec = "w" , lw = 3 , fc = "w" , alpha = 0.9 )
76
+ p2 = PathPatch (text_path , ec = "none" , fc = "k" )
80
77
81
78
offsetbox2 = AuxTransformBox (IdentityTransform ())
82
79
offsetbox2 .add_artist (p1 )
@@ -95,7 +92,7 @@ def draw(self, renderer=None):
95
92
96
93
# EXAMPLE 2
97
94
98
- arr = np .arange (256 ).reshape (1 , 256 ) / 256
95
+ arr = np .arange (256 ).reshape (1 , 256 )
99
96
100
97
for usetex , xpos , string in [
101
98
(False , 0.25 ,
@@ -105,9 +102,7 @@ def draw(self, renderer=None):
105
102
r"\frac{-e^{i\pi}}{2^n}\right]$!" ),
106
103
]:
107
104
text_path = TextPath ((0 , 0 ), string , size = 40 , usetex = usetex )
108
- text_patch = PathClippedImagePatch (text_path , arr , ec = "none" ,
109
- transform = IdentityTransform ())
110
-
105
+ text_patch = PathClippedImagePatch (text_path , arr , ec = "none" )
111
106
shadow1 = Shadow (text_patch , 1 , - 1 , fc = "none" , ec = "0.6" , lw = 3 )
112
107
shadow2 = Shadow (text_patch , 1 , - 1 , fc = "0.3" , ec = "none" )
113
108
0 commit comments