diff --git a/scripts/plot.py b/scripts/plot.py index 72c496c0..4a34f415 100755 --- a/scripts/plot.py +++ b/scripts/plot.py @@ -1410,6 +1410,7 @@ def main(csv_paths, *, if __name__ == "__main__": import sys import argparse + import re parser = argparse.ArgumentParser( description="Plot CSV files in terminal.", allow_abbrev=False) @@ -1476,8 +1477,10 @@ if __name__ == "__main__": help="Characters to use for lines.") parser.add_argument( '--labels', - type=lambda x: [x.strip() for x in x.split(',')], - help="Comma-separated legend labels.") + type=lambda x: [x.strip().replace('\,',',') + for x in re.split(r'(?