summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-03-27 06:23:37 +0000
committerGary E. Miller <gem@rellim.com>2005-03-27 06:23:37 +0000
commit697603c905c7bd234f13c49c63b63e0b412def22 (patch)
treef8625be30bcbbbf05834a878b19f567fbc701c4f /gpsprof
parenta2140cf033d4b66402eec6481f78eaf94801769a (diff)
downloadgpsd-697603c905c7bd234f13c49c63b63e0b412def22.tar.gz
get the comma in the right place if no altitude.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsprof b/gpsprof
index 681293c9..bbe9154a 100755
--- a/gpsprof
+++ b/gpsprof
@@ -114,9 +114,9 @@ class spaceplot:
fmt += "set arrow from -chlen,0 to chlen,0 nohead\n"
fmt += "set arrow from 0,-chlen to 0,chlen nohead\n"
fmt += 'plot cx(t, cep),cy(t, cep) title "CEP (50%%) = %f meters", ' % (cep_meters)
- fmt += ' "%s" using 1:2 with points ls 3 title "%d GPS fixes" , ' % (file, len(self.fixes))
+ fmt += ' "%s" using 1:2 with points ls 3 title "%d GPS fixes" ' % (file, len(self.fixes))
if alt_avg != gps.ALTITUDE_NOT_VALID:
- fmt += '"%s" using ( %f ):($5 > %d ? $5 - %f : 1/0) axes x1y2 with points ls 2 title " %d Altitude fixes, Average = %f" \n' % ( file, lon_max + 1, gps.ALTITUDE_NOT_VALID, alt_avg, alt_num, alt_avg)
+ fmt += ', "%s" using ( %f ):($5 > %d ? $5 - %f : 1/0) axes x1y2 with points ls 2 title " %d Altitude fixes, Average = %f" \n' % ( file, lon_max + 1, gps.ALTITUDE_NOT_VALID, alt_avg, alt_num, alt_avg)
return fmt
class uninstrumented: