diff options
author | Gary E. Miller <gem@rellim.com> | 2005-03-28 21:00:47 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2005-03-28 21:00:47 +0000 |
commit | 84efb3596d60885ce6b89634330da71f4f489acc (patch) | |
tree | b8834ea1c8a27a8d60248cb5c2e220deeb8ac0d1 /gpsprof | |
parent | f5138bc154a3958cf7988ac4290c97926bd0919e (diff) | |
download | gpsd-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-x | gpsprof | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |