Open JTN-Kendal opened 3 years ago
pg 84
In[24:
'plot the results plt.plot(bins, counts, linestyle='steps');'
This produces an error as lifestyle is incorrect. it should (or at least this works) be 'drawstyle="steps"':
plt.plot(bins, counts, drawstyle="steps");
Do:
plt.step(bins, counts)
Instead of plt.plot().
plt.plot()
Also see #329. Some of the code examples need updates since this book was last updated in 2018. 😸
pg 84
In[24:
'plot the results plt.plot(bins, counts, linestyle='steps');'
This produces an error as lifestyle is incorrect. it should (or at least this works) be 'drawstyle="steps"':
plt.plot(bins, counts, drawstyle="steps");