Sfoglia il codice sorgente

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.
Christopher Haster 3 anni fa
parent
commit
1f37eb5563
2 ha cambiato i file con 713 aggiunte e 185 eliminazioni
  1. 707 183
      scripts/plot.py
  2. 6 2
      scripts/plotmpl.py

File diff suppressed because it is too large
+ 707 - 183
scripts/plot.py


+ 6 - 2
scripts/plotmpl.py

@@ -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',

Some files were not shown because too many files changed in this diff