@@ -233,20 +233,19 @@ def drop_shadow_line(ax):
233
233
def drop_shadow_patches (ax ):
234
234
# Copied from barchart_demo.py
235
235
N = 5
236
- men_means = [20 , 35 , 30 , 35 , 27 ]
236
+ group1_means = [20 , 35 , 30 , 35 , 27 ]
237
237
238
238
ind = np .arange (N ) # the x locations for the groups
239
239
width = 0.35 # the width of the bars
240
240
241
- rects1 = ax .bar (ind , men_means , width , color = 'r' , ec = "w" , lw = 2 )
241
+ rects1 = ax .bar (ind , group1_means , width , color = 'r' , ec = "w" , lw = 2 )
242
242
243
- women_means = [25 , 32 , 34 , 20 , 25 ]
244
- rects2 = ax .bar (ind + width + 0.1 , women_means , width ,
243
+ group2_means = [25 , 32 , 34 , 20 , 25 ]
244
+ rects2 = ax .bar (ind + width + 0.1 , group2_means , width ,
245
245
color = 'y' , ec = "w" , lw = 2 )
246
246
247
- # gauss = GaussianFilter(1.5, offsets=(1, 1))
248
- gauss = DropShadowFilter (5 , offsets = (1 , 1 ))
249
- shadow = FilteredArtistList (rects1 + rects2 , gauss )
247
+ drop = DropShadowFilter (5 , offsets = (1 , 1 ))
248
+ shadow = FilteredArtistList (rects1 + rects2 , drop )
250
249
ax .add_artist (shadow )
251
250
shadow .set_zorder (rects1 [0 ].get_zorder () - 0.1 )
252
251
0 commit comments