summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorSanjeev Gupta <ghane0@gmail.com>2015-05-01 23:40:29 +0800
committerGary E. Miller <gem@rellim.com>2015-05-07 14:20:55 -0700
commitf8c31a6b238e0c58064f80933060232762ea1d26 (patch)
treec487c056bf1490f6e04afcbb816622eb9f7ee810 /leapsecond.py
parenta3a501e73c589f826b8bdd6fda8ce86f67db4eb2 (diff)
downloadgpsd-f8c31a6b238e0c58064f80933060232762ea1d26.tar.gz
Leap seconds plotted as points.
There is no uniformity, hence a line linking points is misleading. Also clarify Title, this is not TAI-UTC, but GPS-UTC. Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/leapsecond.py b/leapsecond.py
index 60e478ea..38f03cd2 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -302,7 +302,7 @@ def graph_history(filename):
fmt += 'lsq(x) = %s * x + %s\n' % (b, c)
fmt += '# Maximum residual error is %.2f weeks\n' % e
fmt += 'set autoscale\n'
- fmt += 'set ylabel "Leap second offset"\n'
+ fmt += 'set ylabel "GPS-UTC (s)"\n'
fmt += 'set yrange [0:%d]\n' % (len(dates) - 1)
fmt += 'set xlabel "Leap second date"\n'
fmt += 'set xtics rotate by 300\n'
@@ -311,7 +311,7 @@ def graph_history(filename):
fmt += 'set format x "%Y-%m-%d"\n'
fmt += 'set xrange ["%s":"%s"]\n' % (dates[0], dates[-1])
fmt += 'set key left top box\n'
- fmt += 'plot "-" using 3:1 title "Leap-second trend" with linespoints ;\n'
+ fmt += 'plot "-" using 3:1 title "Leap second inserted" with points ;\n'
for (i, (r, d)) in enumerate(zip(raw, dates)):
fmt += "%d\t%s\t%s\n" % (i, r, d)
fmt += 'e\n'