메모
전체 예제 코드를 다운로드 하려면 여기 를 클릭 하십시오.
PGF 글꼴 #
![pgf 글꼴](/stable/_images/sphx_glr_pgf_fonts_001.png)
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Font family ['serif'] not found. Falling back to DejaVu Sans.
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
findfont: Generic family 'serif' not found because none of the following families were found:
import matplotlib.pyplot as plt
plt.rcParams.update({
"font.family": "serif",
# Use LaTeX default serif font.
"font.serif": [],
# Use specific cursive fonts.
"font.cursive": ["Comic Neue", "Comic Sans MS"],
})
fig, ax = plt.subplots(figsize=(4.5, 2.5))
ax.plot(range(5))
ax.text(0.5, 3., "serif")
ax.text(0.5, 2., "monospace", family="monospace")
ax.text(2.5, 2., "sans-serif", family="DejaVu Sans") # Use specific sans font.
ax.text(2.5, 1., "comic", family="cursive")
ax.set_xlabel("µ is not $\\mu$")
fig.tight_layout(pad=.5)
fig.savefig("pgf_fonts.pdf")
fig.savefig("pgf_fonts.png")
스크립트의 총 실행 시간: ( 0분 1.457초)