Skip to content

Commit 28ed86f

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 791c37b commit 28ed86f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lectures/prob_meaning.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ translation:
6060
import numpy as np
6161
import pandas as pd
6262
import matplotlib.pyplot as plt
63+
import matplotlib as mpl
64+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
65+
mpl.font_manager.fontManager.addfont(FONTPATH)
66+
plt.rcParams['font.family'] = ['Source Han Serif SC']
6367
from scipy.stats import binom
6468
import scipy.stats as st
6569
```

0 commit comments

Comments
 (0)