add unit to x axis label in histo plots
This commit is contained in:
+11
-1
@@ -1671,6 +1671,16 @@ def histo_graphs(out_rows: list[OutputRow], args: argparse.Namespace):
|
||||
term = args.hterm
|
||||
plotstyle = "set style fill transparent solid 0.35 noborder"
|
||||
linestyle = "with steps lw 2"
|
||||
xax_unitstr = {
|
||||
"elig_qtime": " (h)",
|
||||
"mem_eff": "",
|
||||
"planned_time": " (h)",
|
||||
"usedmem": " (GB)",
|
||||
"vpu_eff": "",
|
||||
"start": "",
|
||||
"time_eff": "",
|
||||
"walltime": " (h)"
|
||||
}
|
||||
|
||||
if term in ("svg", "png"):
|
||||
width, height = 900, 600
|
||||
@@ -1745,7 +1755,7 @@ def histo_graphs(out_rows: list[OutputRow], args: argparse.Namespace):
|
||||
|
||||
gnuplot_cmd = (f'set title "{metric} distribution" noenhanced\n'
|
||||
f'{xax_format}'
|
||||
f'set xlabel "{metric}" noenhanced\n'
|
||||
f'set xlabel "{metric}{xax_unitstr[metric]}" noenhanced\n'
|
||||
f'set ylabel "jobs"\n'
|
||||
f'{plotstyle}\n'
|
||||
f'{termsetup[term]}\n'
|
||||
|
||||
Reference in New Issue
Block a user