0

I'm looking for a way to draw an horizontal line (or to "shadow") the following graphic in gnuplot to show day vs night:

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

The script to generate this image is:

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

Could you please give me some help? Thanks in advance!

user2591846
  • 61
  • 1
  • 3
  • you might find this helpful: [How do I draw a vertical line in gnuplot](http://stackoverflow.com/questions/4457046/how-do-i-draw-a-vertical-line-in-gnuplot), as the concept is basically the same for a horizontal line. – Schorsch Jul 17 '13 at 17:09
  • Thanks for your help Schorsch, but as the graph is in autoscale, is difficult to mantain vertical lengths scaled. – user2591846 Jul 26 '13 at 18:56

0 Answers0