awesome style

gnuplot はそのまま使うと一見して gnuplot で作ったダサい見た目になりがち. 小洒落たスタイルでライバルたちに差をつけろ!!

折れ線グラフ

set terminal pngcairo

set style line 1 lw 2 pt 6 lc rgb "#00aaaa"

set style line 11 lc rgb '#808080' lt 1 lw 3
set border 0 back ls 11
set tics out nomirror

set style line 12 lc rgb '#808080' lt 0 lw 1
set grid back ls 12

set xrange [-4:4]
plot x**3 linestyle 1
Gnuplot Produced by GNUPLOT 6.0 patchlevel 0 -80 -60 -40 -20 0 20 40 60 80 -4 -3 -2 -1 0 1 2 3 4 x**3 x**3

棒グラフ

$data <<EOD
apple 100
banana 200
candy 250
EOD

# tics style
set style line 11 lc rgb '#808080' lt 1 lw 3
set border 0 back ls 11
set tics out nomirror
set style line 12 lc rgb '#808080' lt 0 lw 1

# grid style
set grid back ls 12

set boxwidth 0.5 relative
set style fill solid 1.0 border lc rgb '#55aaff'
set style line 1 lc rgb '#77ccff'

set yrange [0:300]
set grid ytics

plot $data using 0:2:xticlabel(1) with boxes ls 1 title 'values'
Gnuplot Produced by GNUPLOT 6.0 patchlevel 0 0 50 100 150 200 250 300 apple banana candy values values