Skip to content

Commit 3e7ec32

Browse files
committed
Rename variables in example to be more generic
1 parent d09ff24 commit 3e7ec32

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/misc/demo_agg_filter.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,19 @@ def drop_shadow_line(ax):
233233
def drop_shadow_patches(ax):
234234
# Copied from barchart_demo.py
235235
N = 5
236-
men_means = [20, 35, 30, 35, 27]
236+
group1_means = [20, 35, 30, 35, 27]
237237

238238
ind = np.arange(N) # the x locations for the groups
239239
width = 0.35 # the width of the bars
240240

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)
242242

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,
245245
color='y', ec="w", lw=2)
246246

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)
250249
ax.add_artist(shadow)
251250
shadow.set_zorder(rects1[0].get_zorder() - 0.1)
252251

0 commit comments

Comments
 (0)