def gen_scatter_plot(filedist_hash): myPlot = scatterPlot() for key, value in sorted(filedist_hash.iteritems(), key=lambda (k,v): (v,k)): file1,file2 = key myPlot.set_value(file1,file2,value) myPlot.draw()
def gen_scatter_plot(filedist_hash): myPlot = scatterPlot() myPlot.fileHash = filedist_hash for key, value in sorted(filedist_hash.iteritems(), key=lambda (k,v): (v,k)): file1,file2 = key metric = 0 print "value" print value for i in value: # metric += int(i.split('\t')[2]) print i metric += int(i[0]) myPlot.set_value(file1,file2,metric) scatter_plot.draw(myPlot)
def scatterPlot(self): scatterPlot()