2014年2月7日金曜日

gnuplotメモ

定義域の指定

set xrange [-10:10]
のようにして指定できるが,plotの先頭に,
plot [-10:10] ...
としても指定できる.

場合分け

C言語と同じ三項演算子が使用できる.
条件 ? 成立時 : 不成立時
例:
plot [0:1] (x<0.5) ? 2*((1-x)**3)*(x**3)-1.0/64 : ((1-x)**3)*(x**3) t "Akinci et al. 2013"

PDF出力

set term pdfcairo enhanced
set output "cohesion.pdf"
replot
set term "wxt"

サンプリング

グラフの品質がいまひとつの場合は,サンプル数を多くする.
set samples 1000




0 件のコメント:

コメントを投稿