Skip to content

Commit 312982c

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 d0109d8 commit 312982c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lectures/lake_model.md

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

8989
```{code-cell} ipython3
9090
import matplotlib.pyplot as plt
91+
import matplotlib as mpl
92+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
93+
mpl.font_manager.fontManager.addfont(FONTPATH)
94+
plt.rcParams['font.family'] = ['Source Han Serif SC']
9195
import jax
9296
import jax.numpy as jnp
9397
from typing import NamedTuple

0 commit comments

Comments
 (0)