n(0, x), label=r'$Y_0$') >>> ax.plot(x, yvp(0, x, 1), label=r"$Y_0'$") >>> ax.scatter(zeros, np.zeros((4, )), s=30, c='r', ... label=r"Roots of $Y_0'$", zorder=5) >>> for root in zeros: ... y0_extremum = yn(0, root) ... lower = min(0, y0_extremum) ... upper = max(0, y0_extremum) ... ax.vlines(root, lower, upper, color='r') >>> ax.hlines(0, 0, xmax, color='k') >>> ax.set_ylim(-0.6, 0.6) >>> ax.set_xlim(0, xmax) >>> plt.legend() >>> plt.show() rs