Skip to content

Commit ebb6ba7

Browse files
authored
Update cake_eating_problem.md
1 parent 68af172 commit ebb6ba7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lectures/cake_eating_problem.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ kernelspec:
3838

3939
```{code-cell} ipython
4040
import matplotlib.pyplot as plt
41+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
42+
mpl.font_manager.fontManager.addfont(FONTPATH)
43+
plt.rcParams['font.family'] = ['Source Han Serif SC']
44+
4145
import numpy as np
4246
```
4347
## 模型

0 commit comments

Comments
 (0)