tips:python:matplotlib:start
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| tips:python:matplotlib:start [2025/03/03 06:08] – [日本語フォント] yuuho | tips:python:matplotlib:start [2025/08/28 12:55] (現在) – [消す系] yuuho | ||
|---|---|---|---|
| 行 368: | 行 368: | ||
| </ | </ | ||
| + | === 図の目盛り === | ||
| + | |||
| + | <code python> | ||
| + | ax.set_xticks([]) | ||
| + | ax.set_yticks([]) | ||
| + | </ | ||
| + | |||
| + | === 図の背景 === | ||
| + | |||
| + | <code python> | ||
| + | ax.patch.set_facecolor(' | ||
| + | fig.patch.set_facecolor(' | ||
| + | </ | ||
| ===== 日本語フォント ===== | ===== 日本語フォント ===== | ||
| 行 391: | 行 404: | ||
| rcParams[' | rcParams[' | ||
| </ | </ | ||
| + | |||
| + | === フォントの確認 === | ||
| + | <code python> | ||
| + | import matplotlib.font_manager as fm | ||
| + | |||
| + | fonts = set([fm.FontProperties(fname=font).get_name() for font in fm.findSystemFonts()]) | ||
| + | </ | ||
| + | |||
tips/python/matplotlib/start.1740982098.txt.gz · 最終更新: 2025/03/03 06:08 by yuuho
