Skip to content

Commit 1458aa8

Browse files
committed
Remove unnecessary parameters
1 parent e57b5fc commit 1458aa8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/pylab_examples/histogram_demo_multihist.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
fig, axes = plt.subplots(nrows=2, ncols=2)
66
ax0, ax1, ax2, ax3 = axes.flat
77

8-
mu, sigma = 200, 25
9-
x = mu + sigma*np.random.randn(1000,3)
8+
x = np.random.randn(1000,3)
109

1110
colors = ['crimson', 'burlywood', 'chartreuse']
1211
n, bins, patches = ax0.hist(x, 10, normed=1, histtype='bar',
@@ -22,7 +21,7 @@
2221
ax2.set_title('stepfilled')
2322

2423
# Make a multiple-histogram of data-sets with different length.
25-
x_multi = [mu + sigma*np.random.randn(n) for n in [10000, 5000, 2000]]
24+
x_multi = [np.random.randn(n) for n in [10000, 5000, 2000]]
2625

2726
n, bins, patches = ax3.hist(x_multi, 10, histtype='bar')
2827
ax3.set_title('different sample sizes')

0 commit comments

Comments
 (0)