comment

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

関連記事

no image

convert コマンドで最大画像サイズを指定して画像を変換する方法

-extent のオプションで画像の希望の最大サイズを入力しておくことにより、そのサイズ(下の例では5キロバイト)になる。 同時に、希望の画像の大きさも、-resize オプションを使って入力しておく …

no image

C言語でchar文字列の長さを取得する (strlen)

strlen 関数を使って取得すればよい。sizeof という関数もあるが、strlen と振る舞いが異なるので注意。 例 #include<stdio.h> #include<strin …

no image

matplotlib の ax でx軸、y軸の端の値を設定する

axes には、set_xlim として定義する。 例 import numpy as np from matplotlib import pyplot as plt x = np.linspace( …

no image

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

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

no image

vi, vim で行番号を指定して移動する方法

「行番号の数字を入力」→「G」(=shift+g)キーを押す で移動できる。 詳細:https://vim.jp.net/stepuptonovice_movecursor_linenumber.ht …