Skip to content

Commit 13512ae

Browse files
committed
errorbar-plot: order the legend alphabetically
1 parent 6a94636 commit 13512ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

benchmarks/errorbar-plot/plot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
def main():
1616
parser = argparse.ArgumentParser(description="Plot the results of the errorbar-plot benchmark.")
1717
parser.add_argument('root', help="directory with the result files to plot")
18-
parser.add_argument('--alternative-palette', dest='use_alt_palette',
19-
action='store_true', default=False,
18+
parser.add_argument('--alternative-palette',
19+
dest='use_alt_palette',
20+
action='store_true',
2021
help="Use another color palette")
2122
args = parser.parse_args()
2223

2324
root = pathlib.Path(args.root)
24-
result_files = list(root.glob('*.csv'))
25+
result_files = sorted(root.glob('*.csv'))
2526
if len(result_files) == 0:
2627
print(f"There are no files to plot in {root}")
2728
sys.exit(1)

0 commit comments

Comments
 (0)