forked from Imagelibrary/littlefs
Adopted --subplot* in plot.py
As well as --legend* and --*ticklabels. Mostly for close feature parity, making it easier to move plots between plot.py and plotmpl.py.
This commit is contained in:
978
scripts/plot.py
978
scripts/plot.py
File diff suppressed because it is too large
Load Diff
@@ -1150,11 +1150,15 @@ if __name__ == "__main__":
|
||||
help="Add a label to the y-axis.")
|
||||
parser.add_argument(
|
||||
'--xticklabels',
|
||||
type=lambda x: [x.strip() for x in x.split(',')],
|
||||
type=lambda x:
|
||||
[x.strip() for x in x.split(',')]
|
||||
if x.strip() else [],
|
||||
help="Comma separated xticklabels.")
|
||||
parser.add_argument(
|
||||
'--yticklabels',
|
||||
type=lambda x: [x.strip() for x in x.split(',')],
|
||||
type=lambda x:
|
||||
[x.strip() for x in x.split(',')]
|
||||
if x.strip() else [],
|
||||
help="Comma separated yticklabels.")
|
||||
parser.add_argument(
|
||||
'-t', '--title',
|
||||
|
||||
Reference in New Issue
Block a user