Python3の計算結果をGnuplotでグラフ化(subprocess Popenを使う)

ディスプレイにグラフを表示させる pythonからgnuplotを使う上で、これが最も簡単な方法。 from subprocess import call call( ["gnuplot", "-e", "plot sin(x); pause -1"]) qを押せばグラフは消える。 グラフをファイルに保存 gnuplotの設定は長くなるので、 gnuplotCommand という文字列にまとめた。 from subprocess i…