diff options
author | Gary E. Miller <gem@rellim.com> | 2005-08-03 05:55:00 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2005-08-03 05:55:00 +0000 |
commit | 056c3753004ae9f55d84c04f8ac3e4971ddd1c21 (patch) | |
tree | 997793766c959aabb8b5d8d21922f94b41272cf1 /gpsprof | |
parent | e313c04bed6281949c56b65ddeb51f2325f31764 (diff) | |
download | gpsd-056c3753004ae9f55d84c04f8ac3e4971ddd1c21.tar.gz |
gpsprof with altitude works again on garmin GPS 18USB.
NaN is problematic in Python, use PosInf instead until isnan is in the
standard Python library.
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 != NaN ? $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 : Inf) 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) |