tips:python:matplotlib:start
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| tips:python:matplotlib:start [2025/02/14 01:54] – [グリッドベースレイアウト] yuuho | tips:python:matplotlib:start [2025/08/28 12:55] (現在) – [消す系] yuuho | ||
|---|---|---|---|
| 行 366: | 行 366: | ||
| ax.spines[' | ax.spines[' | ||
| ax.spines[' | ax.spines[' | ||
| + | </ | ||
| + | |||
| + | === 図の目盛り === | ||
| + | |||
| + | <code python> | ||
| + | ax.set_xticks([]) | ||
| + | ax.set_yticks([]) | ||
| + | </ | ||
| + | |||
| + | === 図の背景 === | ||
| + | |||
| + | <code python> | ||
| + | ax.patch.set_facecolor(' | ||
| + | fig.patch.set_facecolor(' | ||
| + | </ | ||
| + | ===== 日本語フォント ===== | ||
| + | |||
| + | === Ubuntu でのフォントディレクトリ === | ||
| + | |||
| + | * ''/ | ||
| + | |||
| + | **メイリオ(meiryo)を使いたい場合** は Windows から引っこ抜いてくるのが良さそう。 | ||
| + | * '' | ||
| + | * WSL で言うところの ''/ | ||
| + | * メイリオは以下二つ | ||
| + | * ''/ | ||
| + | * ''/ | ||
| + | * <code bash> | ||
| + | |||
| + | |||
| + | === フォントの設定やフォントをアウトライン化して出力する設定 === | ||
| + | |||
| + | <code python> | ||
| + | from matplotlib import rcParams | ||
| + | rcParams[' | ||
| + | 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.1739498092.txt.gz · 最終更新: 2025/02/14 01:54 by yuuho
