Skip to content

Commit 9906c5e

Browse files
committed
Make it more obvious from the titles of longitudinal plots with flags that
the flag only applies to the head version, not the base version.
1 parent cb183f8 commit 9906c5e

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
@@ -330,9 +330,11 @@ def get_comparison_value(ref, r, base):
330330
r for r in results if list(r.parsed_version.release[0:2]) == version
331331
]
332332

333-
subtitle = f"Python {cfg['version']}.x vs. {cfg['base']}"
334333
if len(cfg["flags"]):
335-
subtitle += f" ({','.join(cfg['flags'])})"
334+
titleflags = f" ({','.join(cfg['flags'])})"
335+
else:
336+
titleflags = ""
337+
subtitle = f"Python {cfg['version']}.x{titleflags} vs. {cfg['base']}"
336338
ax.set_title(subtitle)
337339

338340
first_runner = True

0 commit comments

Comments
 (0)