$ gnuplot
# 複数のグラフをプロットする
gnuplot> plot sin(x) title "sin(x)", cos(x) title "cos(x)", tan(x) title "tan(x)"
# 横軸レンジを設定する
gnuplot> set xrange[-2*pi:2*pi]
# 縦軸レンジを設定する
gnuplot> set yrange[-1:1]
# 横軸のラベルを設定する
gnuplot> set xlabel "x"
# 縦軸のラベルを設定する
gnuplot> set ylabel "y"
# タイトルを設定する
gnuplot> set title "sin cos tan"
# 横軸のフォーマットを指定する(%Pで値を円周率の倍数表記にして、πの文字を{/Symbol p}で表示する)
gnuplot> set format x "%2.1P{/Symbol p}"
# 横軸の目盛りをpi/2単位にする
gnuplot> set xtics pi/2
# 横軸の目盛りをさらに何分割するか指定する(1で分割しない)
gnuplot> set mxtics 1
# 補助線を表示する(非表示はunset grid)
gnuplot> set grid
# 再描画する
gnuplot> replot