Skip to content

Commit 77e6394

Browse files
authored
Merge pull request #433 from Yhg1s/longitudinal-plot-name
Use a clearer name for longitudinal plots with flags
2 parents 06e7834 + 8a1cda0 commit 77e6394

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

bench_runner/plot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,11 @@ def get_comparison_value(ref, r, base):
336336
else:
337337
cfg_runners = runners
338338

339-
subtitle = f"Python {cfg['version']}.x vs. {cfg['base']}"
340339
if len(cfg["flags"]):
341-
subtitle += f" ({','.join(cfg['flags'])})"
340+
titleflags = f" ({','.join(cfg['flags'])})"
341+
else:
342+
titleflags = ""
343+
subtitle = f"Python {cfg['version']}.x{titleflags} vs. {cfg['base']}"
342344
ax.set_title(subtitle)
343345

344346
first_runner = True

0 commit comments

Comments
 (0)