TakafuTips

2018-11-01から1ヶ月間の記事一覧

Pythonでテキストの読み書き (NumPy)

numpy.loadtxt テキストデータをnumpy arrayに読み込む 詳しい記述はソースサイトより よく使うオプション fname: file, string dtype: data-type, optional delimiter: string, optional numpy.savetxt numpy arrayをテキストデータに書き出す よく使うオプ…

コマンドライン上でグラフを描画する

Gnuplotで描画画面にGUI使わない設定が利用できる。 gnuplot> set terminal dump Terminal type set to 'dumb' Options are 'feed size 79, 24 aspect 2, 1' gnuplot> p sin(x) 1 +-+--------------***---------------+---**-----------+--------**----+-+ +…