File: mxtics_time.dem

package info (click to toggle)
gnuplot 6.0.3%2Bdfsg1-1~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 14,960 kB
  • sloc: ansic: 95,874; cpp: 7,199; makefile: 2,470; javascript: 2,339; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (42 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Play around with new options to auto-generate tics for time axes
#

set title "Compare old (top) and new (bottom)\nauto-generation of minor tics on time axis"
set bmargin at screen 0.6

timefmt = "%d-%b-%Y"
set timefmt timefmt
set mouse mouseformat 6

SpY = 3600*24*365.

set xdata time
set x2data time
set link x2
set tics scale 0.1, 10.0
set tics nomirror
unset ytics
set grid lt 1 lc "yellow" lw 4

set xrange [ '01-Jan-1932' : '31-Dec-2004' ]

#set xtics  time format "%d-%b-%Y\n%H:%M"
set xtics  time format "%Y"
set mxtics time 2 years

set x2tics  time format ""
set mx2tics 

plot sin(x/SpY) with lines lt nodraw notitle

pause -1


set xrange [ "01-Jan-1932" : "05-Jun-1932" ]
set mxtics time 1 week
set xtics format "%d-%b"

replot

pause -1