From 813c91dbfc09620ce2b559ab99ec0ae3ece9ba0c Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 3 Aug 2005 06:21:37 +0000 Subject: Undo bad change. 1/0 is not a math operation, it is a plot command. So replacing 1/0 with Inf is a syntax error. --- gpsprof | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpsprof') diff --git a/gpsprof b/gpsprof index 2f3b32b4..f85b3ac3 100755 --- a/gpsprof +++ b/gpsprof @@ -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 < 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) + fmt += ', "-" using ( %f ):($5 < 100000 ? $5 - %f : 1/0) 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) -- cgit v1.2.1