Changeset 1abcec9b for doc/theses/mike_brooks_MMath/plots
- Timestamp:
- Apr 13, 2026, 3:05:44 AM (2 weeks ago)
- Branches:
- master
- Children:
- 5b21636b
- Parents:
- 2581f1e
- Location:
- doc/theses/mike_brooks_MMath/plots
- Files:
-
- 7 edited
-
ListCommon.py (modified) (6 diffs)
-
list-1ord.d (modified) (1 diff)
-
list-1ord.gp (modified) (4 diffs)
-
list-1ord.py (modified) (4 diffs)
-
list-2ord.d (modified) (1 diff)
-
list-2ord.gp (modified) (5 diffs)
-
list-2ord.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/plots/ListCommon.py
r2581f1e r1abcec9b 3 3 import math 4 4 import os 5 import sys 5 6 from subprocess import Popen, PIPE 6 7 from scipy.stats import gmean … … 265 266 return metadata 266 267 268 def printSingleSummaryFrom( measure, dfgrouped, *, 269 file = sys.stdout, 270 index = True, 271 end = '\n' ) : 272 aggregated = dfgrouped[measure].agg([ 273 ("gmean", gmean), "std", "min", "max", "count", 274 lambda x: x.quantile(0.025), 275 lambda x: x.quantile(0.16), 276 lambda x: x.quantile(0.5), 277 lambda x: x.quantile(0.84), 278 lambda x: x.quantile(0.975) 279 ]) 280 text = aggregated.to_csv(header=False, index=index, sep='\t') 281 print(text, file=file, end=end) 282 283 267 284 swiftSweetspot = (lambda x: x > 16 and x < 150) 268 285 # swiftSweetspot = (lambda x: x > 4 and x < 32) … … 303 320 304 321 grouped = timings.groupby(['op_num', 'fx_num', 'fx']) 305 306 aggregated = grouped[measure].agg( 307 ["mean", "std", "min", "max", "count", 308 lambda x: x.quantile(0.025), 309 lambda x: x.quantile(0.16), 310 lambda x: x.quantile(0.5), 311 lambda x: x.quantile(0.84), 312 lambda x: x.quantile(0.975)] 313 ) 314 315 text = aggregated.to_csv(header=False, index=True, sep='\t') 316 print(text, end='') 322 printSingleSummaryFrom( measure, grouped, end ='' ) 323 317 324 318 325 def printSingleDetail( … … 426 433 lateFilter = {}, # exclude from output 427 434 drillOn = ['fx'], 428 marginalizeOn = None ): # None means match drill-on 435 marginalizeOn = None, # None means match drill-on 436 sumFile = sys.stdout, 437 detFile = sys.stdout ): 429 438 430 439 if marginalizeOn == None: … … 478 487 # print(mgroup, file=sys.stderr) 479 488 489 dkey_str = list( map( str, dkey ) ) 490 header = str.join(', ', dkey_str) 491 492 dgroup_sole = dgroup.groupby((lambda _: 0)) 493 print(f'"{header}"', file=sumFile) 494 printSingleSummaryFrom( 495 c_measure, dgroup_sole, file=sumFile, index=False ) 496 print(file=sumFile) 497 print(file=sumFile) 498 480 499 histo_raw = dgroup[ c_measureBkt ].value_counts() 481 500 for b in buckets: … … 490 509 histo.insert(y_lo_col_loc + 1, "y_hi", histo["y_lo"].apply(topValOfBucketBotVal)) 491 510 492 dkey_str = list( map( str, dkey ) ) 493 header = str.join(', ', dkey_str) 494 print(f'"{header}"') 511 print(f'"{header}"', file=detFile) 495 512 text = histo.to_csv(header=False, index=False, sep='\t') 496 print(text )497 print( )498 print( )513 print(text, file=detFile) 514 print(file=detFile) 515 print(file=detFile) 499 516 500 517 # print(f'"{header}" FULL') -
doc/theses/mike_brooks_MMath/plots/list-1ord.d
r2581f1e r1abcec9b 1 plots/list-1ord.gp.INPUTS: build/plot-list-1ord. dat | build1 plots/list-1ord.gp.INPUTS: build/plot-list-1ord.sum.dat build/plot-list-1ord.det.dat | build 2 2 plots/list-1ord.py.INPUTS: benchmarks/list/results-swift-general.csv -
doc/theses/mike_brooks_MMath/plots/list-1ord.gp
r2581f1e r1abcec9b 15 15 set grid 16 16 set nokey 17 set logscale y 2 18 set yrange [0.4:3.0]; 19 set ytics ( \ 20 "+40%%" 1.666666667, \ 21 "+30%%" 1.428571429, \ 22 "+20%%" 1.25, \ 23 "+10%%" 1.111111111, \ 24 "0" 1, \ 25 "-20%%" 0.833333333, \ 26 "-40%%" 0.714285714, \ 27 "-60%%" 0.625, \ 28 "-80%%" 0.555555556, \ 29 "-100%%" 0.5, \ 30 "-130%%" 0.434782609, \ 31 "-160%%" 0.384615385, \ 32 "-200%%" 0.333333333 \ 33 ) 17 18 set ylabel "Duration (relative)" offset -1.0,0 19 set logscale y (2**0.2) 20 set yrange [0.38:2.5]; 21 set format y "%.1f {/Symbol \264}" 22 set ytics (0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 2.4) 23 24 # Draw fake x axis at y=1.0; use vertical-only bounding 'H' 25 unset border 26 set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2 27 set arrow 100 from graph 0, graph 0 to graph 0, graph 1 nohead lw 1 front 28 set arrow 101 from graph 1, graph 0 to graph 1, graph 1 nohead lw 1 front 29 34 30 set xrange [-5.5:17.5]; 35 31 set xlabel "Machine, Size Zone; Operation; Framework; \nPrevalence Prevalence Prevalence" … … 57 53 "LQ: tailq" 15, \ 58 54 "LQ: list" 16, \ 59 ) rotate by -45 60 61 set ylabel "Duration (relative)" offset -1.0,0 62 set errorbars 2.0 63 set pointintervalbox 0 55 ) scale 0 rotate by -45 64 56 65 57 barHtScale_phys = 0.05 … … 67 59 barHtScale_fx = 0.05 68 60 61 set errorbars 0 linewidth 4 62 set pointintervalbox 0 69 63 70 plot INDIR."/plot-list-1ord.dat" \ 64 65 plot INDIR."/plot-list-1ord.det.dat" \ 71 66 i 3 using (0):(0):(-1 - 1):(-1 - 1 + barHtScale_phys * $3):1:2 title columnheader(1) with boxxyerror fc rgb "black" fs transparent solid 0.15 noborder, \ 72 67 '' i 2 using (0):(0):(-1 - 2):(-1 - 2 + barHtScale_phys * $3):1:2 title columnheader(1) with boxxyerror fc rgb "black" fs transparent solid 0.15 noborder, \ … … 110 105 '' i 19 using (1 + 13 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 111 106 '' i 18 using (1 + 14 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 112 '' i 17 using (1 + 15 + 3.5 * barHtScale_fx * $3):2 notitle with steps lc rgb "purple" lw 0.3 113 107 '' i 17 using (1 + 15 + 3.5 * barHtScale_fx * $3):2 notitle with steps lc rgb "purple" lw 0.3, \ 108 \ 109 INDIR."/plot-list-1ord.sum.dat" \ 110 i 3 using (-1 - 1):1:(-1 - 1):(-1 - 1 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 111 '' i 2 using (-1 - 2):1:(-1 - 2):(-1 - 2 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 112 '' i 1 using (-1 - 3):1:(-1 - 3):(-1 - 3 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 113 '' i 0 using (-1 - 4):1:(-1 - 4):(-1 - 4 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 114 \ 115 '' i 10 using ( 0):1:( 0):( 0 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 116 '' i 11 using ( 1):1:( 1):( 1 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 117 '' i 12 using ( 2):1:( 2):( 2 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 118 '' i 13 using ( 3):1:( 3):( 3 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 119 '' i 14 using ( 4):1:( 4):( 4 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 120 '' i 15 using ( 5):1:( 5):( 5 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 121 '' i 4 using ( 6):1:( 6):( 6 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 122 '' i 5 using ( 7):1:( 7):( 7 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 123 '' i 6 using ( 8):1:( 8):( 8 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 124 '' i 7 using ( 9):1:( 9):( 9 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 125 '' i 8 using ( 10):1:( 10):( 10 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 126 '' i 9 using ( 11):1:( 11):( 11 + .8) notitle with xerrorbars lc rgb "black" pt 5 ps 0.8, \ 127 \ 128 '' i 16 using (1 + 12):1:(1 + 12):(1 + 12 + .8) notitle with xerrorbars lc rgb "blue" pt 7 ps 1.0, \ 129 '' i 19 using (1 + 13):1:(1 + 13):(1 + 13 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \ 130 '' i 18 using (1 + 14):1:(1 + 14):(1 + 14 + .8) notitle with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \ 131 '' i 17 using (1 + 15):1:(1 + 15):(1 + 15 + .8) notitle with xerrorbars lc rgb "dark-violet" pt 13 ps 1.4 -
doc/theses/mike_brooks_MMath/plots/list-1ord.py
r2581f1e r1abcec9b 6 6 sys.path.insert(0, os.path.dirname(__file__)) 7 7 from ListCommon import * 8 9 sumFile = open( sys.argv[1], 'w' ) 10 detFile = open( sys.argv[2], 'w' ) 8 11 9 12 physicals = ['machine', 'SizeZone'] … … 21 24 tgtPolarity = 'all', 22 25 tgtAccessor = 'all', 23 drillOn=physicals ) 26 drillOn=physicals, 27 sumFile = sumFile, 28 detFile = detFile ) 24 29 25 30 printHistos( … … 27 32 tgtPolarity = 'all', 28 33 tgtAccessor = 'all', 29 drillOn=ops ) 34 drillOn=ops, 35 sumFile = sumFile, 36 detFile = detFile ) 30 37 31 38 printHistos( … … 33 40 tgtPolarity = 'all', 34 41 tgtAccessor = 'all', 35 drillOn=fx ) 42 drillOn=fx, 43 sumFile = sumFile, 44 detFile = detFile ) -
doc/theses/mike_brooks_MMath/plots/list-2ord.d
r2581f1e r1abcec9b 1 plots/list-2ord.gp.INPUTS: build/plot-list-2ord. dat | build1 plots/list-2ord.gp.INPUTS: build/plot-list-2ord.sum.dat build/plot-list-2ord.det.dat | build 2 2 plots/list-2ord.py.INPUTS: benchmarks/list/results-swift-general.csv -
doc/theses/mike_brooks_MMath/plots/list-2ord.gp
r2581f1e r1abcec9b 12 12 set lmargin 10 13 13 set bmargin 5 14 set tmargin 214 set tmargin 3.5 15 15 16 16 set grid 17 set nokey18 17 19 18 set logscale y (2**0.2) 20 set yrange [0. 57:1.65];21 set format y "%. 2f {/Symbol \264}"19 set yrange [0.65:1.65]; 20 set format y "%.1f {/Symbol \264}" 22 21 set ytics (0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6) 23 22 set ylabel "Speedup, bot. opt. {/Symbol \256} top opt." offset -0.5,0 … … 30 29 31 30 set xrange [-0.7:27.5]; 32 set xlabel "Criterion; top / bot.Options; Prevalence" offset 0,-1.531 set xlabel "Criterion; top-bottom Options; Prevalence" offset 0,-1.5 33 32 set format x "" 34 33 set xtics ( \ … … 42 41 43 42 set label "small" at first 1.5, graph 1.05 center 44 set label "(AMD)" at first 1.5, graph 0.06 center font "Times-Bold,18" 43 set label "(AMD)" at first 1.5, graph 0.06 center font "Times-Bold,18" front 45 44 set label "medium" at first 1.5, graph -0.05 center 46 45 set label "small" at first 6.5, graph 1.05 center 47 set label "(Intel)" at first 6.5, graph 0.06 center font "Times-Bold,18" 46 set label "(Intel)" at first 6.5, graph 0.06 center font "Times-Bold,18" front 48 47 set label "medium" at first 6.5, graph -0.05 center 49 48 set label "Size Zone" at first 4 , graph -0.14 center … … 60 59 set label "ins. elem." at first 19.5, graph -0.05 center 61 60 set label "all head" at first 24.5, graph 1.05 center 62 set label "rem. elem " at first 24.5, graph -0.05 center61 set label "rem. elem." at first 24.5, graph -0.05 center 63 62 set label "Accessor" at first 22 , graph -0.14 center 64 63 … … 84 83 set arrow 21+.4 from 26+.4, graph -0.10 to 26+.4, graph -0.08 nohead lw 1 85 84 85 # legend, augmented 86 set key outside top center horizontal maxrows 1 samplen 2 width +1 # offset -10,0 87 set object 2 rect from first 3.20, screen 0.93 to first 4.85, screen 0.99 fc rgb "blue" fs transparent solid 0.20 border lc rgb "blue" lw 0.3 88 set object 3 rect from first 8.80, screen 0.93 to first 10.45, screen 0.99 fc rgb "dark-orange" fs transparent solid 0.25 border lc rgb "dark-orange" lw 0.3 89 set object 4 rect from first 14.40, screen 0.93 to first 16.05, screen 0.99 fc rgb "magenta" fs transparent solid 0.20 border lc rgb "magenta" lw 0.3 90 set object 5 rect from first 19.98, screen 0.93 to first 21.63, screen 0.99 fc rgb "dark-violet" fs transparent solid 0.25 border lc rgb "dark-violet" lw 0.3 91 # word "mean" is title of a data series plotted froom $Singleton 92 set arrow 99 from first 20.8, screen 0.96 to first 23, screen 0.96 nohead lw 1 dt 2 93 86 94 set errorbars 2.0 87 95 set pointintervalbox 0 88 96 89 barHtScale_phys = 0.05 90 barHtScale_op = 0.1 91 barHtScale_fx = 0.05 92 93 94 plot INDIR."/plot-list-2ord.dat" \ 95 i ( 0 + 0) using (0):(0):( 0 + 0):( 0 + 0 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "blue" fs transparent solid 0.15 noborder, \ 96 '' i ( 0 + 3) using (0):(0):( 0 + 1):( 0 + 1 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "dark-orange" fs transparent solid 0.15 noborder, \ 97 '' i ( 0 + 2) using (0):(0):( 0 + 2):( 0 + 2 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "magenta" fs transparent solid 0.15 noborder, \ 98 '' i ( 0 + 1) using (0):(0):( 0 + 3):( 0 + 3 + 3.5 * barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "purple" fs transparent solid 0.35 noborder, \ 99 '' i ( 0 + 0) using ( 0 + 0 + barHtScale_fx * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 100 '' i ( 0 + 3) using ( 0 + 1 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 101 '' i ( 0 + 2) using ( 0 + 2 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 102 '' i ( 0 + 1) using ( 0 + 3 + 3.5 * barHtScale_fx * $3):2 notitle with steps lc rgb "purple" lw 0.3, \ 103 \ 104 '' i ( 4 + 0) using (0):(0):( 5 + 0):( 5 + 0 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "blue" fs transparent solid 0.15 noborder, \ 105 '' i ( 4 + 3) using (0):(0):( 5 + 1):( 5 + 1 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "dark-orange" fs transparent solid 0.15 noborder, \ 106 '' i ( 4 + 2) using (0):(0):( 5 + 2):( 5 + 2 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "magenta" fs transparent solid 0.15 noborder, \ 107 '' i ( 4 + 1) using (0):(0):( 5 + 3):( 5 + 3 + 3.5 * barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "purple" fs transparent solid 0.35 noborder, \ 108 '' i ( 4 + 0) using ( 5 + 0 + barHtScale_fx * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 109 '' i ( 4 + 3) using ( 5 + 1 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 110 '' i ( 4 + 2) using ( 5 + 2 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 111 '' i ( 4 + 1) using ( 5 + 3 + 3.5 * barHtScale_fx * $3):2 notitle with steps lc rgb "purple" lw 0.3, \ 112 \ 113 '' i ( 8 + 0) using (0):(0):(10 + 0):(10 + 0 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "blue" fs transparent solid 0.15 noborder, \ 114 '' i ( 8 + 2) using (0):(0):(10 + 1):(10 + 1 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "dark-orange" fs transparent solid 0.15 noborder, \ 115 '' i ( 8 + 1) using (0):(0):(10 + 2):(10 + 2 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "magenta" fs transparent solid 0.15 noborder, \ 116 '' i ( 8 + 0) using (10 + 0 + barHtScale_fx * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 117 '' i ( 8 + 2) using (10 + 1 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 118 '' i ( 8 + 1) using (10 + 2 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 119 \ 120 '' i (11 + 0) using (0):(0):(14 + 0):(14 + 0 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "blue" fs transparent solid 0.15 noborder, \ 121 '' i (11 + 2) using (0):(0):(14 + 1):(14 + 1 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "dark-orange" fs transparent solid 0.15 noborder, \ 122 '' i (11 + 1) using (0):(0):(14 + 2):(14 + 2 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "magenta" fs transparent solid 0.15 noborder, \ 123 '' i (11 + 0) using (14 + 0 + barHtScale_fx * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 124 '' i (11 + 2) using (14 + 1 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 125 '' i (11 + 1) using (14 + 2 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 126 \ 127 '' i (14 + 0) using (0):(0):(18 + 0):(18 + 0 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "blue" fs transparent solid 0.15 noborder, \ 128 '' i (14 + 3) using (0):(0):(18 + 1):(18 + 1 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "dark-orange" fs transparent solid 0.15 noborder, \ 129 '' i (14 + 2) using (0):(0):(18 + 2):(18 + 2 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "magenta" fs transparent solid 0.15 noborder, \ 130 '' i (14 + 1) using (0):(0):(18 + 3):(18 + 3 + 3.5 * barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "purple" fs transparent solid 0.35 noborder, \ 131 '' i (14 + 0) using (18 + 0 + barHtScale_fx * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 132 '' i (14 + 3) using (18 + 1 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 133 '' i (14 + 2) using (18 + 2 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 134 '' i (14 + 1) using (18 + 3 + 3.5 * barHtScale_fx * $3):2 notitle with steps lc rgb "purple" lw 0.3, \ 135 \ 136 '' i (18 + 0) using (0):(0):(23 + 0):(23 + 0 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "blue" fs transparent solid 0.15 noborder, \ 137 '' i (18 + 3) using (0):(0):(23 + 1):(23 + 1 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "dark-orange" fs transparent solid 0.15 noborder, \ 138 '' i (18 + 2) using (0):(0):(23 + 2):(23 + 2 + barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "magenta" fs transparent solid 0.15 noborder, \ 139 '' i (18 + 1) using (0):(0):(23 + 3):(23 + 3 + 3.5 * barHtScale_fx * $3):1:2 title columnheader(1) with boxxyerror fc rgb "purple" fs transparent solid 0.35 noborder, \ 140 '' i (18 + 0) using (23 + 0 + barHtScale_fx * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 141 '' i (18 + 3) using (23 + 1 + barHtScale_fx * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 142 '' i (18 + 2) using (23 + 2 + barHtScale_fx * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 143 '' i (18 + 1) using (23 + 3 + 3.5 * barHtScale_fx * $3):2 notitle with steps lc rgb "purple" lw 0.3 97 # One row, to plot one-off points 98 $Singleton <<EOD 99 0 100 EOD 101 102 103 104 105 # show colornames 106 # blue #0000ff = 0 0 255 107 # dark-orange #c04000 = 192 64 0 108 # magenta #ff00ff = 255 0 255 109 # purple #c080ff = 192 128 255 110 111 112 113 114 115 set errorbars 0 linewidth 4 116 117 118 barHtScale = 0.048 119 120 plot \ 121 INDIR."/plot-list-2ord.det.dat" \ 122 i ( 0 + 0) using (0):(0):( 0 + 0):( 0 + 0 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "blue" fs transparent solid 0.20 noborder, \ 123 '' i ( 0 + 3) using (0):(0):( 0 + 1):( 0 + 1 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-orange" fs transparent solid 0.25 noborder, \ 124 '' i ( 0 + 2) using (0):(0):( 0 + 2):( 0 + 2 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "magenta" fs transparent solid 0.20 noborder, \ 125 '' i ( 0 + 1) using (0):(0):( 0 + 3):( 0 + 3 + 3.5 * barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-violet" fs transparent solid 0.25 noborder, \ 126 '' i ( 0 + 0) using ( 0 + 0 + barHtScale * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 127 '' i ( 0 + 3) using ( 0 + 1 + barHtScale * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 128 '' i ( 0 + 2) using ( 0 + 2 + barHtScale * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 129 '' i ( 0 + 1) using ( 0 + 3 + 3.5 * barHtScale * $3):2 notitle with steps lc rgb "dark-violet" lw 0.3, \ 130 \ 131 '' i ( 4 + 0) using (0):(0):( 5 + 0):( 5 + 0 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "blue" fs transparent solid 0.20 noborder, \ 132 '' i ( 4 + 3) using (0):(0):( 5 + 1):( 5 + 1 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-orange" fs transparent solid 0.25 noborder, \ 133 '' i ( 4 + 2) using (0):(0):( 5 + 2):( 5 + 2 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "magenta" fs transparent solid 0.20 noborder, \ 134 '' i ( 4 + 1) using (0):(0):( 5 + 3):( 5 + 3 + 3.5 * barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-violet" fs transparent solid 0.25 noborder, \ 135 '' i ( 4 + 0) using ( 5 + 0 + barHtScale * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 136 '' i ( 4 + 3) using ( 5 + 1 + barHtScale * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 137 '' i ( 4 + 2) using ( 5 + 2 + barHtScale * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 138 '' i ( 4 + 1) using ( 5 + 3 + 3.5 * barHtScale * $3):2 notitle with steps lc rgb "dark-violet" lw 0.3, \ 139 \ 140 '' i ( 8 + 0) using (0):(0):(10 + 0):(10 + 0 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "blue" fs transparent solid 0.20 noborder, \ 141 '' i ( 8 + 2) using (0):(0):(10 + 1):(10 + 1 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-orange" fs transparent solid 0.25 noborder, \ 142 '' i ( 8 + 1) using (0):(0):(10 + 2):(10 + 2 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "magenta" fs transparent solid 0.20 noborder, \ 143 '' i ( 8 + 0) using (10 + 0 + barHtScale * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 144 '' i ( 8 + 2) using (10 + 1 + barHtScale * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 145 '' i ( 8 + 1) using (10 + 2 + barHtScale * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 146 \ 147 '' i (11 + 0) using (0):(0):(14 + 0):(14 + 0 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "blue" fs transparent solid 0.20 noborder, \ 148 '' i (11 + 2) using (0):(0):(14 + 1):(14 + 1 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-orange" fs transparent solid 0.25 noborder, \ 149 '' i (11 + 1) using (0):(0):(14 + 2):(14 + 2 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "magenta" fs transparent solid 0.20 noborder, \ 150 '' i (11 + 0) using (14 + 0 + barHtScale * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 151 '' i (11 + 2) using (14 + 1 + barHtScale * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 152 '' i (11 + 1) using (14 + 2 + barHtScale * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 153 \ 154 '' i (14 + 0) using (0):(0):(18 + 0):(18 + 0 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "blue" fs transparent solid 0.20 noborder, \ 155 '' i (14 + 3) using (0):(0):(18 + 1):(18 + 1 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-orange" fs transparent solid 0.25 noborder, \ 156 '' i (14 + 2) using (0):(0):(18 + 2):(18 + 2 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "magenta" fs transparent solid 0.20 noborder, \ 157 '' i (14 + 1) using (0):(0):(18 + 3):(18 + 3 + 3.5 * barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-violet" fs transparent solid 0.25 noborder, \ 158 '' i (14 + 0) using (18 + 0 + barHtScale * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 159 '' i (14 + 3) using (18 + 1 + barHtScale * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 160 '' i (14 + 2) using (18 + 2 + barHtScale * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 161 '' i (14 + 1) using (18 + 3 + 3.5 * barHtScale * $3):2 notitle with steps lc rgb "dark-violet" lw 0.3, \ 162 \ 163 '' i (18 + 0) using (0):(0):(23 + 0):(23 + 0 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "blue" fs transparent solid 0.20 noborder, \ 164 '' i (18 + 3) using (0):(0):(23 + 1):(23 + 1 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-orange" fs transparent solid 0.25 noborder, \ 165 '' i (18 + 2) using (0):(0):(23 + 2):(23 + 2 + barHtScale * $3):1:2 notitle with boxxyerror fc rgb "magenta" fs transparent solid 0.20 noborder, \ 166 '' i (18 + 1) using (0):(0):(23 + 3):(23 + 3 + 3.5 * barHtScale * $3):1:2 notitle with boxxyerror fc rgb "dark-violet" fs transparent solid 0.25 noborder, \ 167 '' i (18 + 0) using (23 + 0 + barHtScale * $3):2 notitle with steps lc rgb "blue" lw 0.3, \ 168 '' i (18 + 3) using (23 + 1 + barHtScale * $3):2 notitle with steps lc rgb "dark-orange" lw 0.3, \ 169 '' i (18 + 2) using (23 + 2 + barHtScale * $3):2 notitle with steps lc rgb "magenta" lw 0.3, \ 170 '' i (18 + 1) using (23 + 3 + 3.5 * barHtScale * $3):2 notitle with steps lc rgb "dark-violet" lw 0.3, \ 171 \ 172 INDIR."/plot-list-2ord.sum.dat" \ 173 i ( 0 + 0) using ( 0 + 0 ):1 title "{/Helvetica=15 C{/Symbol \42}}" with points lc rgb "blue" pt 7 ps 1.0, \ 174 '' i ( 0 + 3) using ( 0 + 1 ):1 title "{/Symbol \155}C++" with points lc rgb "dark-orange" pt 9 ps 1.2, \ 175 '' i ( 0 + 2) using ( 0 + 2 ):1 title "LQ-tailq" with points lc rgb "magenta" pt 11 ps 1.2, \ 176 '' i ( 0 + 1) using ( 0 + 3 ):1 title "LQ-list" with points lc rgb "dark-violet" pt 13 ps 1.4, \ 177 '' i ( 0 + 0) using ( 0 + 0):1:( 0 + 0):( 0 + 0 + .8) notitle with xerrorbars lc rgb "blue" pt 0, \ 178 '' i ( 0 + 3) using ( 0 + 1):1:( 0 + 1):( 0 + 1 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 0, \ 179 '' i ( 0 + 2) using ( 0 + 2):1:( 0 + 2):( 0 + 2 + .8) notitle with xerrorbars lc rgb "magenta" pt 0, \ 180 '' i ( 0 + 1) using ( 0 + 3):1:( 0 + 3):( 0 + 3 + .8) notitle with xerrorbars lc rgb "dark-violet" pt 0, \ 181 \ 182 '' i ( 4 + 0) using ( 5 + 0):1:( 5 + 0):( 5 + 0 + .8) notitle with xerrorbars lc rgb "blue" pt 7 ps 1.0, \ 183 '' i ( 4 + 3) using ( 5 + 1):1:( 5 + 1):( 5 + 1 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \ 184 '' i ( 4 + 2) using ( 5 + 2):1:( 5 + 2):( 5 + 2 + .8) notitle with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \ 185 '' i ( 4 + 1) using ( 5 + 3):1:( 5 + 3):( 5 + 3 + .8) notitle with xerrorbars lc rgb "dark-violet" pt 13 ps 1.4, \ 186 \ 187 '' i ( 8 + 0) using (10 + 0):1:(10 + 0):(10 + 0 + .8) notitle with xerrorbars lc rgb "blue" pt 7 ps 1.0, \ 188 '' i ( 8 + 2) using (10 + 1):1:(10 + 1):(10 + 1 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \ 189 '' i ( 8 + 1) using (10 + 2):1:(10 + 2):(10 + 2 + .8) notitle with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \ 190 \ 191 '' i (11 + 0) using (14 + 0):1:(14 + 0):(14 + 0 + .8) notitle with xerrorbars lc rgb "blue" pt 7 ps 1.0, \ 192 '' i (11 + 2) using (14 + 1):1:(14 + 1):(14 + 1 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \ 193 '' i (11 + 1) using (14 + 2):1:(14 + 2):(14 + 2 + .8) notitle with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \ 194 \ 195 '' i (14 + 0) using (18 + 0):1:(18 + 0):(18 + 0 + .8) notitle with xerrorbars lc rgb "blue" pt 7 ps 1.0, \ 196 '' i (14 + 3) using (18 + 1):1:(18 + 1):(18 + 1 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \ 197 '' i (14 + 2) using (18 + 2):1:(18 + 2):(18 + 2 + .8) notitle with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \ 198 '' i (14 + 1) using (18 + 3):1:(18 + 3):(18 + 3 + .8) notitle with xerrorbars lc rgb "dark-violet" pt 13 ps 1.4, \ 199 \ 200 '' i (18 + 0) using (23 + 0):1:(23 + 0):(23 + 0 + .8) notitle with xerrorbars lc rgb "blue" pt 7 ps 1.0, \ 201 '' i (18 + 3) using (23 + 1):1:(23 + 1):(23 + 1 + .8) notitle with xerrorbars lc rgb "dark-orange" pt 9 ps 1.2, \ 202 '' i (18 + 2) using (23 + 2):1:(23 + 2):(23 + 2 + .8) notitle with xerrorbars lc rgb "magenta" pt 11 ps 1.2, \ 203 '' i (18 + 1) using (23 + 3):1:(23 + 3):(23 + 3 + .8) notitle with xerrorbars lc rgb "dark-violet" pt 13 ps 1.4, \ 204 \ 205 $Singleton using (0):(0.1):("This text is placed offscrean-low") title "↕ mean" with labels -
doc/theses/mike_brooks_MMath/plots/list-2ord.py
r2581f1e r1abcec9b 6 6 sys.path.insert(0, os.path.dirname(__file__)) 7 7 from ListCommon import * 8 9 sumFile = open( sys.argv[1], 'w' ) 10 detFile = open( sys.argv[2], 'w' ) 8 11 9 12 # for mvmt+polarity effects, where lq-list doesn't support queue or inslast … … 17 20 'SizeZone': ['ML'] }, 18 21 drillOn=['machine', 'SizeZone', 'fx'], 19 marginalizeOn=['SizeZone'] ) 22 marginalizeOn=['SizeZone'], 23 sumFile = sumFile, 24 detFile = detFile ) 20 25 21 26 printHistos( … … 26 31 'SizeZone': ['ML'] }, 27 32 drillOn=['machine', 'SizeZone', 'fx'], 28 marginalizeOn=['SizeZone'] ) 33 marginalizeOn=['SizeZone'], 34 sumFile = sumFile, 35 detFile = detFile ) 29 36 30 37 printHistos( … … 35 42 'fx': noLqList }, 36 43 drillOn=['movement', 'fx'], 37 marginalizeOn=['movement'] ) 44 marginalizeOn=['movement'], 45 sumFile = sumFile, 46 detFile = detFile ) 38 47 39 48 printHistos( … … 44 53 'fx': noLqList }, 45 54 drillOn=['polarity', 'fx'], 46 marginalizeOn=['polarity'] ) 55 marginalizeOn=['polarity'], 56 sumFile = sumFile, 57 detFile = detFile ) 47 58 48 59 printHistos( … … 50 61 tgtPolarity = 'all', 51 62 tgtAccessor = 'all', 52 earlyFilter = { 'accessor': ['allhead', 'inselem'] }, 53 lateFilter = { 'accessor': ['inselem'] }, 63 earlyFilter = { 'accessor': ['allhead', 'inselem'] }, # set up head-to-head benchmarking 64 lateFilter = { 'accessor': ['inselem'] }, # show one side of the mirror, as usual 54 65 drillOn=['accessor', 'fx'], 55 marginalizeOn=['accessor'] ) 66 marginalizeOn=['accessor'], 67 sumFile = sumFile, 68 detFile = detFile ) 56 69 57 70 printHistos( … … 62 75 lateFilter = { 'accessor': ['remelem'] }, 63 76 drillOn=['accessor', 'fx'], 64 marginalizeOn=['accessor'] ) 77 marginalizeOn=['accessor'], 78 sumFile = sumFile, 79 detFile = detFile )
Note:
See TracChangeset
for help on using the changeset viewer.