We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a94636 commit 13512aeCopy full SHA for 13512ae
benchmarks/errorbar-plot/plot.py
@@ -15,13 +15,14 @@
15
def main():
16
parser = argparse.ArgumentParser(description="Plot the results of the errorbar-plot benchmark.")
17
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,
+ parser.add_argument('--alternative-palette',
+ dest='use_alt_palette',
20
+ action='store_true',
21
help="Use another color palette")
22
args = parser.parse_args()
23
24
root = pathlib.Path(args.root)
- result_files = list(root.glob('*.csv'))
25
+ result_files = sorted(root.glob('*.csv'))
26
if len(result_files) == 0:
27
print(f"There are no files to plot in {root}")
28
sys.exit(1)
0 commit comments