full_range_seasonal.gnuplot: add a note about xtics placement
[experiments/gnuplot_seasonal_plot.git] / base.gnuplot
1 #!/usr/bin/gnuplot -persist
2 #
3 #
4 #       G N U P L O T
5 #       Version 4.6 patchlevel 6    last modified September 2014
6 #       Build System: Linux x86_64
7 #
8 #       Copyright (C) 1986-1993, 1998, 2004, 2007-2014
9 #       Thomas Williams, Colin Kelley and many others
10 #
11 #       gnuplot home:     http://www.gnuplot.info
12 #       faq, bugs, etc:   type "help FAQ"
13 #       immediate help:   type "help"  (plot window: hit 'h')
14
15 set title "Basic data plot doesn't highlight the seasonal behaviour"
16
17 set border 3
18 set grid xtics back
19 set key noreverse enhanced autotitles box linetype -1 linewidth 1.000
20 set key vert out bottom center
21 set key width 2 height 1
22 set rmargin 8
23
24 set xdata time
25 set timefmt "%Y-%m-%d"
26 set format x "%b %y"
27 set xtics out nomirror rotate by -45
28
29 set ylabel "y" norotate
30 set ytics out nomirror 1
31
32 # When data is time, intervals are in seconds.
33 one_year = 60 * 60 * 24 * 365.25
34 three_months = one_year / 4
35
36 set xtics three_months
37
38 set terminal qt 0
39 #set terminal png notransparent nocrop truecolor rounded enhanced font "arial,8" fontscale 1.0
40 #set output 'base.png'
41
42 plot \
43   'data.dat' using 1:2 w l lc rgb "black" title "data"