summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-03-26 10:52:56 +0000
committerGary E. Miller <gem@rellim.com>2005-03-26 10:52:56 +0000
commitdb8c71808a4474e0969dc025fef31a7778128044 (patch)
treecca2b8e6de6bf602f140a6922280004059412020 /gpsprof
parent63fbe8fbfbd6b3010059efc28fff57661cbae5d6 (diff)
downloadgpsd-db8c71808a4474e0969dc025fef31a7778128044.tar.gz
gpsprof: first cut at adding Altitude to gpsprof spaceplot.
It works but not finished visually.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index f1d6b9e9..eb77acef 100755
--- a/gpsprof
+++ b/gpsprof
@@ -84,9 +84,12 @@ class spaceplot:
fmt += 'set key below\n'
fmt += 'set key title "%s"\n' % time.asctime()
fmt += 'set size ratio -1\n'
+ fmt += 'set style line 2 pt 1\n'
fmt += 'set style line 3 pt 2 # Looks good on X11\n'
fmt += 'set xlabel "Meters east from %s"\n' % lonstring
fmt += 'set ylabel "Meters north from %s"\n' % latstring
+ fmt += 'set y2label "Meters Altitude"\n'
+ fmt += 'set y2tics\n'
fmt += 'cep=%f\n' % d((0,0), recentered[len(self.fixes)/2])
fmt += 'set parametric\n'
fmt += 'set trange [0:2*pi]\n'
@@ -95,7 +98,7 @@ class spaceplot:
fmt += 'chlen = cep/20\n'
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", "%s" using 1:2 with points ls 3 title "%d GPS fixes"\n' % (cep_meters, file, len(self.fixes))
+ fmt += 'plot cx(t, cep),cy(t, cep) title "CEP (50%%) = %f meters", "%s" using 1:2 with points ls 3 title "%d GPS fixes" , "%s" using (0):($5 > -999 ? $5 : 1/0) axes x1y2 with points ls 2 title "Alt" \n' % (cep_meters, file, len(self.fixes), file)
return fmt
class uninstrumented: