examples/hist.rb in pycall-1.2.1 vs examples/hist.rb in pycall-1.3.0.dev
- old
+ new
@@ -18,10 +18,10 @@
num_bins = 50
fig, ax = *plt.subplots
-n, bins, patches = *ax.hist(x, num_bins, normed: 1)
+n, bins, patches = *ax.hist(x, num_bins, density: 1)
y = mlab.normpdf(bins, mu, sigma)
ax.plot(bins, y, '--')
ax.set_xlabel('Smarts')
ax.set_ylabel('Probability density')