Jelajahi Sumber

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 tahun lalu
induk
melakukan
303819eaa9
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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";
     var newline = "<br>\n";
 }
 }
 function message(str) {
 function message(str) {
-    console.log(str);
+    //console.log(str);
     cell = $D('messages');
     cell = $D('messages');
     cell.innerHTML += str + newline;
     cell.innerHTML += str + newline;
     cell.scrollTop = cell.scrollHeight;
     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
 from matplotlib.font_manager import FontProperties
 
 
 def usage():
 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 "Description:\n"
     print "level1, level2, and level3 are one each of the following:\n";
     print "level1, level2, and level3 are one each of the following:\n";
     print "  select=ITEM - select only ITEM at this level";
     print "  select=ITEM - select only ITEM at this level";