Skip to content

Commit 966f208

Browse files
committed
errorbar-plot: order the legend alphabetically
1 parent 4225897 commit 966f208

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
@@ -14,13 +14,14 @@
1414
def main():
1515
parser = argparse.ArgumentParser(description="Plot the results of the errorbar-plot benchmark.")
1616
parser.add_argument('root', help="directory with the result files to plot")
17-
parser.add_argument('--alternative-palette', dest='use_alt_palette',
18-
action='store_true', default=False,
17+
parser.add_argument('--alternative-palette',
18+
dest='use_alt_palette',
19+
action='store_true',
1920
help="Use another color palette")
2021
args = parser.parse_args()
2122

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

0 commit comments

Comments
 (0)