summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-03-28 21:00:47 +0000
committerGary E. Miller <gem@rellim.com>2005-03-28 21:00:47 +0000
commit84efb3596d60885ce6b89634330da71f4f489acc (patch)
treeb8834ea1c8a27a8d60248cb5c2e220deeb8ac0d1 /gpsprof
parentf5138bc154a3958cf7988ac4290c97926bd0919e (diff)
downloadgpsd-84efb3596d60885ce6b89634330da71f4f489acc.tar.gz
Without the trailing newline spaceplot never generated any plot w/o altitudes.
Testing on EC-10X which dumps no altitude.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsprof b/gpsprof
index bbe9154a..ad35c5f1 100755
--- a/gpsprof
+++ b/gpsprof
@@ -117,6 +117,8 @@ class spaceplot:
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)
+ else:
+ fmt += "\n"
return fmt
class uninstrumented: