summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-08-03 06:21:37 +0000
committerGary E. Miller <gem@rellim.com>2005-08-03 06:21:37 +0000
commit813c91dbfc09620ce2b559ab99ec0ae3ece9ba0c (patch)
tree7841132ebe795e84eeed689c9adc16e2e9cee47d /gpsprof
parent056c3753004ae9f55d84c04f8ac3e4971ddd1c21 (diff)
downloadgpsd-813c91dbfc09620ce2b559ab99ec0ae3ece9ba0c.tar.gz
Undo bad change. 1/0 is not a math operation, it is a plot command.
So replacing 1/0 with Inf is a syntax error.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index 2f3b32b4..f85b3ac3 100755
--- a/gpsprof
+++ b/gpsprof
@@ -121,7 +121,7 @@ class spaceplot:
fmt += 'plot cx(t, cep),cy(t, cep) title "CEP (50%%) = %f meters", ' % (cep_meters)
fmt += ' "-" using 1:2 with points ls 3 title "%d GPS fixes" ' % (len(self.fixes))
if not gps.isnan(alt_avg):
- fmt += ', "-" using ( %f ):($5 < 100000 ? $5 - %f : Inf) axes x1y2 with points ls 2 title " %d Altitude fixes, Average = %f" \n' % (lon_max +1, alt_avg, alt_num, alt_avg)
+ fmt += ', "-" using ( %f ):($5 < 100000 ? $5 - %f : 1/0) axes x1y2 with points ls 2 title " %d Altitude fixes, Average = %f" \n' % (lon_max +1, alt_avg, alt_num, alt_avg)
else:
fmt += "\n"
fmt += self.header(session)