summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorSanjeev Gupta <ghane0@gmail.com>2015-05-01 23:40:30 +0800
committerGary E. Miller <gem@rellim.com>2015-05-07 14:20:57 -0700
commit7c1a1f62b8755899184f57666099b8a818fa8156 (patch)
tree3ec28808748e1863b165351c1b4863c7b8e960fc /leapsecond.py
parentf8c31a6b238e0c58064f80933060232762ea1d26 (diff)
downloadgpsd-7c1a1f62b8755899184f57666099b8a818fa8156.tar.gz
Extend yrange, so that first and last points can be seen.
Else they lie on the border. Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/leapsecond.py b/leapsecond.py
index 38f03cd2..dff231da 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -303,7 +303,7 @@ def graph_history(filename):
fmt += '# Maximum residual error is %.2f weeks\n' % e
fmt += 'set autoscale\n'
fmt += 'set ylabel "GPS-UTC (s)"\n'
- fmt += 'set yrange [0:%d]\n' % (len(dates) - 1)
+ fmt += 'set yrange [-1:%d]\n' % (len(dates))
fmt += 'set xlabel "Leap second date"\n'
fmt += 'set xtics rotate by 300\n'
fmt += 'set timefmt "%Y-%m-%d"\n'