瀏覽代碼

fix tools/thumbnails.py

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62993 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父節點
當前提交
b97eb48782
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/thumbnails.py

+ 1 - 1
tools/thumbnails.py

@@ -152,7 +152,7 @@ def make_image(output_dir, table, grad, discrete = False):
         lines, cols = None, None
     grass.run_command("r.colors", map = grad, color = table, quiet = True)
     grass.run_command("d.colortable", flags = 'n', map = grad,
-                      lines = lines, cols = cols, quiet = True)
+                      lines = lines, columns = cols, quiet = True)
     outfile = os.path.join(output_dir, "colortables", "%s.png" % table)
     convert_and_rotate(tmp_img, outfile, discrete)