@@ -452,7 +452,7 @@ fig, ax = plt.subplots(figsize=(6, 6))
452
452
ax.contourf(sp.π_grid, sp.w_grid, v_star, 12, alpha=0.6, cmap=cm.jet)
453
453
cs = ax.contour(sp.π_grid, sp.w_grid, v_star, 12, colors="black")
454
454
ax.clabel(cs, inline=1, fontsize=10)
455
- ax.set(xlabel='$\pi$', ylabel='$w$')
455
+ ax.set(xlabel=r '$\pi$', ylabel='$w$')
456
456
457
457
plt.show()
458
458
```
@@ -466,7 +466,7 @@ T, get_greedy = operator_factory(sp)
466
466
fig, ax = plt.subplots(figsize=(6, 6))
467
467
ax.contourf(sp.π_grid, sp.w_grid, σ_star, 1, alpha=0.6, cmap=cm.jet)
468
468
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$')
470
470
471
471
ax.text(0.5, 0.6, 'reject')
472
472
ax.text(0.7, 0.9, 'accept')
@@ -758,7 +758,7 @@ ax.fill_between(sp.π_grid, 0, w_bar, color='blue', alpha=0.15)
758
758
ax.fill_between(sp.π_grid, w_bar, sp.w_max, color='green', alpha=0.15)
759
759
ax.text(0.5, 0.6, 'reject')
760
760
ax.text(0.7, 0.9, 'accept')
761
- ax.set(xlabel='$\pi$', ylabel='$w$')
761
+ ax.set(xlabel=r '$\pi$', ylabel='$w$')
762
762
ax.grid()
763
763
plt.show()
764
764
```
@@ -1009,7 +1009,7 @@ def job_search_example(F_a=1, F_b=1, G_a=3, G_b=1.2, c=0.3):
1009
1009
q = axs[0, 1].quiver(Π, W, ΔΠ, ΔW, scale=2, color='r', alpha=0.8)
1010
1010
1011
1011
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$')
1013
1013
axs[0, 1].grid()
1014
1014
1015
1015
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):
1024
1024
axs[1, 1].set_ylim([0., 1.])
1025
1025
axs[1, 1].grid()
1026
1026
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)\}$')
1028
1028
1029
1029
plt.show()
1030
1030
0 commit comments