如何在gnuplot生成图中绘制白天与夜晚?

时间:2013-07-17 14:35:34

标签: png gnuplot

我正在寻找一种方法来绘制水平线(或“阴影”)gnuplot中的下图以显示白天与黑夜:

http://cucatrap.us.to/dia.png

生成此图片的脚本是:

set autoscale
set title "Campo magnetico terrestre - Intensidad - Ultimas 24hs"
set title font "Freesans, 11"
set timefmt '%Y-%m-%d %H:%M:%S'
set xdata time
set xtics font "Freesans, 9"
set ytics font "Freesans, 9"
set xlabel font "Freesans, 9"
set ylabel font "Freesans, 9"
set key font "Freesans,9"
set key left center
set xlabel "Fecha/Hora"
set ylabel "Campo (mG)"
set terminal png enhanced size 1200,600
set output "dia.png"
set grid y
set grid x
set datafile separator '|'
plot "< sqlite3 /data/magneto/magneto.db  'select * from v_dia'" using 1:2 title 'X' with lines, \
"< sqlite3 /data/magneto/magneto.db  'select * from v_dia'" using 1:3 title 'Y' with lines, \
"< sqlite3 /data/magneto/magneto.db  'select * from v_dia'" using 1:4 title 'Z' with lines, \
"< sqlite3 /data/magneto/magneto.db  'select * from v_dia'" using 1:5 title 'Total' with lines
你能帮我个忙吗? 提前谢谢!

0 个答案:

没有答案