gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 2/4] Leap seconds plotted as points.


From: Sanjeev Gupta
Subject: [gpsd-dev] [PATCH 2/4] Leap seconds plotted as points.
Date: Fri, 1 May 2015 23:40:29 +0800

There is no uniformity, hence a line linking points is misleading.
Also clarify Title, this is not TAI-UTC, but GPS-UTC.
---
 leapsecond.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/leapsecond.py b/leapsecond.py
index 60e478e..38f03cd 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'
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]