Skip to content

Commit a98d6b0

Browse files
authored
Merge pull request #157 from QuantEcon/fix-scipy
[scipy] fix plot in scipy
2 parents b5f8f53 + efcbfb0 commit a98d6b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/scipy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ f = lambda x: np.sin(4 * (x - 1/4)) + x + x**20 - 1
203203
x = np.linspace(0, 1, 100)
204204
205205
fig, ax = plt.subplots()
206-
ax.plot(x, f(x))
207-
ax.axhline(ls='--', c='k', label='$f(x)$')
206+
ax.plot(x, f(x), label='$f(x)$')
207+
ax.axhline(ls='--', c='k')
208208
ax.set_xlabel('$x$', fontsize=12)
209209
ax.set_ylabel('$f(x)$', fontsize=12)
210210
ax.legend(fontsize=12)

0 commit comments

Comments
 (0)