Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【雑記】各環境でのplotを行うコマンドの名称

特に意味はありません
特にRを使う予定もございません
暇ではありません





各環境でのplotを行うコマンドの名称を簡単にまとめる
かんたんのために2次元plotに話を限る

Mathematica

linear - linear : Plot
log x - linear : LogLinearPlot
linear - log y : LogPlot
log x - log y : LogLogPlot


Matlab

http://www.mathworks.co.jp/jp/help/matlab/creating_plots/using-high-level-plotting-functions.html

linear - linear : plot
log x - linear : semilogx
linear - log y : semilogy
log x - log y : loglog

R

linear - linear : plot
log x - linear : log.plot(x, y, log.of.x=TRUE)
linear - log y : log.plot(x, y) or plot(x, y, log="y")
log x - log y : log.plot(x, y, log.of.x=TRUE) or plot(x, y, log="xy")

pythonのmatplotlib

linear - linear : plot(x, y);
log x - linear : plot(x, y);xscale('log'); show()
linear - log y : plot(x, y);yscale('log'); show()
log x - log y : plot(x, y);xscale('log'); yscale('log');show()

gnuplot

linear - linear : plot "hoge.txt"
log x - linear : set log x; plot "hoge.txt"
linear - log y : set log y; plot "hoge.txt"
log x - log y : set log xy; plot "hoge.txt"


主に次の2つに分けられることがわかった
・グラフを描くときにplotという同じ名称のコマンドを使うが、オプションを使って軸スケールを指定する方式
・plotというコマンド名称からそもそも異なる。軸をlogスケールにしたい場合はそれにあったコマンドを使う




現在開発中のplotツールのそれぞれのコマンドの名称の参考にしたい