@@ -76,18 +76,18 @@ def plot_hist(f, height=20, bincount=None, pch="o", colour="white", title=""):
7676
7777 print " " * (nlen + 1 ) + "-" * len (xs )
7878
79- for i in range (0 , nlen ):
80- printcolor (" " * (nlen + 1 ), True , colour )
81- for x in range (0 , len (hist )):
82- num = str (bins [x ])
83- if x % 2 == 0 :
84- print " " ,
85- elif i < len (num ):
86- print num [i ],
87- print
88-
89- summary = "Summary\n --------\n Max: %s\n Min: %s\n Count: %s" % (min_val , max_val , int (n ))
90- print summary
79+ # for i in range(0, nlen):
80+ # printcolor(" "*(nlen+1), True, colour)
81+ # for x in range(0, len(hist)):
82+ # num = str(bins[x])
83+ # if x%2==0:
84+ # print " ",
85+ # elif i < len(num):
86+ # print num[i],
87+ # print
88+ #
89+ # summary = "Summary\n--------\nMax: %s\nMin: %s\nCount: %s" % (min_val, max_val, int(n))
90+ # print summary
9191
9292
9393if __name__ == "__main__" :
@@ -110,5 +110,8 @@ def plot_hist(f, height=20, bincount=None, pch="o", colour="white", title=""):
110110 if opts .f is None :
111111 opts .f = args [0 ]
112112
113- plot_hist (opts .f , opts .h , opts .b , opts .p , opts .colour , opts .t )
113+ if opts .f :
114+ plot_hist (opts .f , opts .h , opts .b , opts .p , opts .colour , opts .t )
115+ else :
116+ print "nothing to plot!"
114117
0 commit comments