Skip to content

Commit 3981529

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 c5f8829 commit 3981529

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lectures/ar1_turningpts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ translation:
6363

6464
```{code-cell} ipython3
6565
import matplotlib.pyplot as plt
66+
import matplotlib as mpl
67+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
68+
mpl.font_manager.fontManager.addfont(FONTPATH)
69+
plt.rcParams['font.family'] = ['Source Han Serif SC']
6670
import seaborn as sns
6771
from typing import NamedTuple
6872

0 commit comments

Comments
 (0)