comment

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

関連記事

no image

python3 で文字列を区切り文字を指定してリストに変換する方法

split メソッドを使う。 例 str1 = ‘this, is, a, pen’ str2 = str1.split(‘,’) print(str2) 結果 [‘this’, ‘ is’, ‘ a …

no image

tex でゼロベクトルを表示する方法

ゼロベクトルは、 数字の 0 の上部にベクトルであることを表す「矢印」をつける。短い矢印の場合は \vec 、長い矢印をつけたい場合は \overrightarrow を使えば良い。 例 $\vec{ …

no image

gnuplot で微分記号(文字上のドット)を入力する方法

文字の上にドットを付けて、時間微分を表すことがある。これを gnuplot で表現するには、次のようにする。 例 set encoding utf8 set ylabel “x\U+0307” plo …

no image

linux で、コマンドライン引数にスペースを含めたい場合

コマンドライン引数に “” を指定するとよい。 例 mkdir “mydir 123”

no image

matplotlib で、凡例を表示する方法

データに label を関連付け、plt.legend() で凡例を表示する。 例 from matplotlib import pyplot as plt data_x = [25,26,2 …