comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

matplotlib で x, y軸・タイトルのフォントサイズを調整する

ラベルの fontsize で指定する。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2, 100) …

no image

unixターミナルでストレージのファイル使用量を表示する方法

unix では、du コマンドを使ってファイルの容量を表示することができる。 h (human readable)のオプションを使うと、キロバイト・メガバイト等 人間に読みやすい表示をしてくれる。 d …

no image

matplotlib で、グラフの点の見た目を変更する方法

「marker」で指定すればよい。 次のページを参考に、plotの「marker」を変更する。 https://matplotlib.org/stable/api/markers_api.html 例 …

no image

matplotlib で、凡例を表示する位置を変更する方法

凡例(legend)の表示位置を変更するには、axis の legend の loc を設定する。 次のリンクhttps://matplotlib.org/stable/api/_as_gen/mat …

no image

tex で数式の場所を右揃え・左揃えにする

align 環境のもとで、& をつけると右揃えや左揃えにすることができる。改行には \\ 記号を使う。 例 \begin{align*} f(x) = x^2 + 2x + 1 &\\ …