Skip to content

Commit 4b542a3

Browse files
mmckyclaude
andcommitted
Restore CJK font configuration dropped by the resync
The resynced file keeps Chinese plot labels but reverted the import cell to the source's exact form, losing the Source Han Serif setup - Chinese in figures would render as missing glyphs. Residual #107 class found in the merge review; applied wave-wide. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b3ab173 commit 4b542a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lectures/likelihood_ratio_process_2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Blume和Easley构建了正式模型,研究关于风险收入过程概率的不
6969

7070
```{code-cell} ipython3
7171
import matplotlib.pyplot as plt
72+
import matplotlib as mpl
73+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
74+
mpl.font_manager.fontManager.addfont(FONTPATH)
75+
plt.rcParams['font.family'] = ['Source Han Serif SC']
7276
import numpy as np
7377
from numba import vectorize, jit, prange
7478
from math import gamma

0 commit comments

Comments
 (0)