Skip to content

Commit caeabbf

Browse files
committed
update label
1 parent 8051cce commit caeabbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lectures/career.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ ax.plot_surface(tg,
314314
cmap=cm.jet,
315315
alpha=0.5,
316316
linewidth=0.25)
317-
ax.set(xlabel=', ylabel=', zlim=(150, 200))
317+
ax.set(xlabel=r'$\theta$', ylabel=r'$\epsilon$', zlim=(150, 200))
318318
ax.view_init(ax.elev, 225)
319319
plt.show()
320320
```
@@ -326,7 +326,7 @@ tg, eg = np.meshgrid(cw.θ, cw.ϵ)
326326
lvls = (0.5, 1.5, 2.5, 3.5)
327327
ax.contourf(tg, eg, greedy_star.T, levels=lvls, cmap=cm.winter, alpha=0.5)
328328
ax.contour(tg, eg, greedy_star.T, colors='k', levels=lvls, linewidths=2)
329-
ax.set(xlabel=', ylabel=')
329+
ax.set(xlabel=r'$\theta$', ylabel=r'$\epsilon$')
330330
ax.text(1.8, 2.5, '新生活', fontsize=14)
331331
ax.text(4.5, 2.5, '新工作', fontsize=14, rotation='vertical')
332332
ax.text(4.0, 4.5, '维持现状', fontsize=14)
@@ -403,8 +403,8 @@ def gen_path(optimal_policy, F, G, t=20):
403403
fig, axes = plt.subplots(2, 1, figsize=(10, 8))
404404
for ax in axes:
405405
θ_path, ϵ_path = gen_path(greedy_star, F, G)
406-
ax.plot(ϵ_path, label=')
407-
ax.plot(θ_path, label=')
406+
ax.plot(ϵ_path, label=r'$\epsilon$')
407+
ax.plot(θ_path, label=r'$\theta$')
408408
ax.set_ylim(0, 6)
409409
410410
plt.legend()
@@ -505,7 +505,7 @@ tg, eg = np.meshgrid(cw.θ, cw.ϵ)
505505
lvls = (0.5, 1.5, 2.5, 3.5)
506506
ax.contourf(tg, eg, greedy_star.T, levels=lvls, cmap=cm.winter, alpha=0.5)
507507
ax.contour(tg, eg, greedy_star.T, colors='k', levels=lvls, linewidths=2)
508-
ax.set(xlabel=', ylabel=')
508+
ax.set(xlabel=r'$\theta$', ylabel=r'$\epsilon$')
509509
ax.text(1.8, 2.5, '新生活', fontsize=14)
510510
ax.text(4.5, 1.5, '新工作', fontsize=14, rotation='vertical')
511511
ax.text(4.0, 4.5, '保持现状', fontsize=14)

0 commit comments

Comments
 (0)