-
Notifications
You must be signed in to change notification settings - Fork 760
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededupstream issueThis issue is from a dependencyThis issue is from a dependency
Description
os: ubuntu 22.04
python: 3.9
scienceplots: 2.0.1
After following the FAQ Installing CJK fonts, I have already installed fonts-noto-cjk
.
But when i tried the examples like:
with plt.style.context(['science', 'no-latex', 'cjk-tc-font']):
fig, ax = plt.subplots()
for p in [5, 7, 10, 15, 20, 30, 38, 50, 100]:
ax.plot(x, model(x, p), label=p)
ax.legend(title='Order', fontsize=7)
ax.set(xlabel=r'電壓 (mV)')
ax.set(ylabel=r'電流 ($\mu$A)')
ax.autoscale(tight=True)
fig.savefig('figures/fig14a.jpg', dpi=300)
with plt.style.context(['science', 'no-latex', 'cjk-sc-font']):
fig, ax = plt.subplots()
for p in [5, 7, 10, 15, 20, 30, 38, 50, 100]:
ax.plot(x, model(x, p), label=p)
ax.legend(title='Order', fontsize=7)
ax.set(xlabel=r'电压 (mV)')
ax.set(ylabel=r'电流 ($\mu$A)')
ax.autoscale(tight=True)
fig.savefig('figures/fig14b.jpg', dpi=300)
with plt.style.context(['science', 'no-latex', 'cjk-jp-font']):
fig, ax = plt.subplots()
for p in [5, 7, 10, 15, 20, 30, 38, 50, 100]:
ax.plot(x, model(x, p), label=p)
ax.legend(title='Order', fontsize=7)
ax.set(xlabel=r'電圧 (mV)')
ax.set(ylabel=r'電気 ($\mu$A)')
ax.autoscale(tight=True)
fig.savefig('figures/fig14c.jpg', dpi=300)
Only cjk-jp-font
made sense. Noto Serif CJK SC
and Noto Serif CJK TC
both failed.
findfont: Generic family 'serif' not found because none of the following families were found: Noto Serif CJK SC
findfont: Generic family 'serif' not found because none of the following families were found: Noto Serif CJK TC
How can I solve this problem? Thanks in advance.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededupstream issueThis issue is from a dependencyThis issue is from a dependency