We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5f8f53 + efcbfb0 commit a98d6b0Copy full SHA for a98d6b0
lectures/scipy.md
@@ -203,8 +203,8 @@ f = lambda x: np.sin(4 * (x - 1/4)) + x + x**20 - 1
203
x = np.linspace(0, 1, 100)
204
205
fig, ax = plt.subplots()
206
-ax.plot(x, f(x))
207
-ax.axhline(ls='--', c='k', label='$f(x)$')
+ax.plot(x, f(x), label='$f(x)$')
+ax.axhline(ls='--', c='k')
208
ax.set_xlabel('$x$', fontsize=12)
209
ax.set_ylabel('$f(x)$', fontsize=12)
210
ax.legend(fontsize=12)
0 commit comments