Skip to content

Commit 4c19212

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 44e73b3 commit 4c19212

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lectures/bayes_nonconj.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ translation:
8484
```{code-cell} ipython3
8585
import numpy as np
8686
import matplotlib.pyplot as plt
87+
import matplotlib as mpl
88+
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
89+
mpl.font_manager.fontManager.addfont(FONTPATH)
90+
plt.rcParams['font.family'] = ['Source Han Serif SC']
8791
import scipy.stats as st
8892
8993
import jax.numpy as jnp

0 commit comments

Comments
 (0)