From e13d388ced9ae1269b19506051a7d70d2113b9a8 Mon Sep 17 00:00:00 2001 From: wukong Date: Tue, 17 Feb 2026 16:20:04 -0800 Subject: added ckt0.gp (gnuplot) to plot logged estimates; changed sprintf parameter from %.f to %d due to round off effects; --- ckt0.awk | 3 +-- ckt0.gp | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 ckt0.gp diff --git a/ckt0.awk b/ckt0.awk index a3bd0e3..720be64 100644 --- a/ckt0.awk +++ b/ckt0.awk @@ -57,7 +57,7 @@ function unc_g(val) { # trim punctuation from val sub("[eE].*$", "", val) gsub("[.+-]", "", val) - omag_unc = sprintf("%.f", omag_val - length(val) + 1.0) + omag_unc = sprintf("%d", omag_val - length(val) + 1.0) return sprintf("%g", 10.0^(omag_unc)) @@ -87,7 +87,6 @@ function ck_boottime(unm) { sub("^.*= ", "", t0_k_arr[n]) } t0_k = t0_k_arr[1] "." t0_k_arr[2] - } else { diff --git a/ckt0.gp b/ckt0.gp new file mode 100644 index 0000000..4964fd1 --- /dev/null +++ b/ckt0.gp @@ -0,0 +1,32 @@ + +# set datafile separator comma; +set key autotitle columnhead; +# set terminal dumb size 192,56; + +set grid; +# set logscale y; + +### plot time v data +# plot 't0.log' using 2:3 with points; +# plot 't0.log' using 2:5 with points; +# plot 't0.log' using 2:6 with points; + +### plot est v unc +# plot 't0.log' using 2:3 with points; +# plot 't0.log' using 4:5 with points; +# plot 't0.log' using 6:7 with points; + +### plot unc v unc +# plot 't0.log' using 3:5 with dots; +# plot 't0.log' using 3:7 with points; +# plot 't0.log' using 5:7 with dots; + +### plot uptime v data +# plot 't0.log' using 4:2 with dots; +# plot 't0.log' using 4:3 with dots; +# plot 't0.log' using 4:5 with dots; +# plot 't0.log' using 4:6 with dots; +# plot 't0.log' using 4:7 with dots; + +# plot 't0.log' using 2:4:(0.5*$5) with errorbars; +plot 't0.log' using 4:6:(0.5*$7) with errorbars; -- cgit v1.2.3