Browse Source

util/json2graph.py: new location for json2graph.py.

Also clarify usage statement with legend height adjustment.

Remove console.log in arrays.js so that it works in firefox without
firebug.
Joel Martin 14 năm trước cách đây
mục cha
commit
303819eaa9
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      tests/arrays.js
  2. 1 1
      utils/json2graph.py

+ 1 - 1
tests/arrays.js

@@ -34,7 +34,7 @@ if (Util.Engine.trident) {
     var newline = "<br>\n";
 }
 function message(str) {
-    console.log(str);
+    //console.log(str);
     cell = $D('messages');
     cell.innerHTML += str + newline;
     cell.scrollTop = cell.scrollHeight;

+ 1 - 1
tests/json2graph.py → utils/json2graph.py

@@ -13,7 +13,7 @@ import matplotlib.pyplot as plt
 from matplotlib.font_manager import FontProperties
 
 def usage():
-    print "%s json_file level1 level2 level3\n\n" % sys.argv[0]
+    print "%s json_file level1 level2 level3 [legend_height]\n\n" % sys.argv[0]
     print "Description:\n"
     print "level1, level2, and level3 are one each of the following:\n";
     print "  select=ITEM - select only ITEM at this level";