Преглед изворни кода

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 година
родитељ
комит
1f37eb5563
2 измењених фајлова са 713 додато и 185 уклоњено
  1. 707 183
      scripts/plot.py
  2. 6 2
      scripts/plotmpl.py

Разлика између датотеке није приказан због своје велике величине
+ 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',

Неке датотеке нису приказане због велике количине промена