Hello again,
while playing with the code for Figure 3.9) I came across the following error value:
ValueError: '---' is not a valid value for ls; supported values are '-', '--', '-.', ':', 'None', ' ', '', 'solid', 'dashed', 'dashdot', 'dotted'
This is being thrown on the line of code:
for (n, b, ls) in zip(n_values, b_values, linestyles):
# create a binomial distribution
dist = binom(n, b)
plt.plot(x, dist.pmf(x), color='black', linestyle='steps-mid' + ls,
label=r'$b=%.1f,\ n=%i$' % (b, n))
I was wondering if you could recommend a fix for this issue? Thank you!
Mason Leist