Skip to content

Commit a83e53c

Browse files
authored
FIX: syntax warning (#438)
1 parent 725a8bf commit a83e53c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: lectures/odu.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ fig, ax = plt.subplots(figsize=(6, 6))
452452
ax.contourf(sp.π_grid, sp.w_grid, v_star, 12, alpha=0.6, cmap=cm.jet)
453453
cs = ax.contour(sp.π_grid, sp.w_grid, v_star, 12, colors="black")
454454
ax.clabel(cs, inline=1, fontsize=10)
455-
ax.set(xlabel='$\pi$', ylabel='$w$')
455+
ax.set(xlabel=r'$\pi$', ylabel='$w$')
456456
457457
plt.show()
458458
```
@@ -466,7 +466,7 @@ T, get_greedy = operator_factory(sp)
466466
fig, ax = plt.subplots(figsize=(6, 6))
467467
ax.contourf(sp.π_grid, sp.w_grid, σ_star, 1, alpha=0.6, cmap=cm.jet)
468468
ax.contour(sp.π_grid, sp.w_grid, σ_star, 1, colors="black")
469-
ax.set(xlabel='$\pi$', ylabel='$w$')
469+
ax.set(xlabel=r'$\pi$', ylabel='$w$')
470470
471471
ax.text(0.5, 0.6, 'reject')
472472
ax.text(0.7, 0.9, 'accept')
@@ -758,7 +758,7 @@ ax.fill_between(sp.π_grid, 0, w_bar, color='blue', alpha=0.15)
758758
ax.fill_between(sp.π_grid, w_bar, sp.w_max, color='green', alpha=0.15)
759759
ax.text(0.5, 0.6, 'reject')
760760
ax.text(0.7, 0.9, 'accept')
761-
ax.set(xlabel='$\pi$', ylabel='$w$')
761+
ax.set(xlabel=r'$\pi$', ylabel='$w$')
762762
ax.grid()
763763
plt.show()
764764
```
@@ -1009,7 +1009,7 @@ def job_search_example(F_a=1, F_b=1, G_a=3, G_b=1.2, c=0.3):
10091009
q = axs[0, 1].quiver(Π, W, ΔΠ, ΔW, scale=2, color='r', alpha=0.8)
10101010
10111011
axs[0, 1].hlines(roots, 0., 1., linestyle="--")
1012-
axs[0, 1].set(xlabel='$\pi$', ylabel='$w$')
1012+
axs[0, 1].set(xlabel=r'$\pi$', ylabel='$w$')
10131013
axs[0, 1].grid()
10141014
10151015
axs[1, 0].plot(f(x_grid), x_grid, label='$f$', lw=2)
@@ -1024,7 +1024,7 @@ def job_search_example(F_a=1, F_b=1, G_a=3, G_b=1.2, c=0.3):
10241024
axs[1, 1].set_ylim([0., 1.])
10251025
axs[1, 1].grid()
10261026
axs[1, 1].legend(loc=4)
1027-
axs[1, 1].set(xlabel='$\pi$', ylabel='$\mathbb{P}\{w > \overline{w} (\pi)\}$')
1027+
axs[1, 1].set(xlabel=r'$\pi$', ylabel=r'$\mathbb{P}\{w > \overline{w} (\pi)\}$')
10281028
10291029
plt.show()
10301030

0 commit comments

Comments
 (0)