Revert "Grapher: Add 0th entry into winnings so graph starts at 0"
This reverts commit f4805746ae
.
This commit is contained in:
parent
71dd221657
commit
97c4ce4d03
|
@ -224,6 +224,9 @@ class GuiGraphViewer (threading.Thread):
|
||||||
self.graphBox.add(self.canvas)
|
self.graphBox.add(self.canvas)
|
||||||
self.canvas.show()
|
self.canvas.show()
|
||||||
self.canvas.draw()
|
self.canvas.draw()
|
||||||
|
|
||||||
|
#TODO: Do something useful like alert user
|
||||||
|
#print "No hands returned by graph query"
|
||||||
else:
|
else:
|
||||||
self.ax.set_title(_("Profit graph for ring games"+names),fontsize=12)
|
self.ax.set_title(_("Profit graph for ring games"+names),fontsize=12)
|
||||||
|
|
||||||
|
@ -337,10 +340,7 @@ class GuiGraphViewer (threading.Thread):
|
||||||
if len(winnings) == 0:
|
if len(winnings) == 0:
|
||||||
return (None, None, None)
|
return (None, None, None)
|
||||||
|
|
||||||
#Insert a 0th entry into winnings so graph starts 'zerod'
|
green = map(lambda x:float(x[1]), winnings)
|
||||||
winnings.insert(0, (0,0,0))
|
|
||||||
|
|
||||||
green = map(lambda x: float(x[1]), winnings)
|
|
||||||
blue = map(lambda x: float(x[1]) if x[2] == True else 0.0, winnings)
|
blue = map(lambda x: float(x[1]) if x[2] == True else 0.0, winnings)
|
||||||
red = map(lambda x: float(x[1]) if x[2] == False else 0.0, winnings)
|
red = map(lambda x: float(x[1]) if x[2] == False else 0.0, winnings)
|
||||||
greenline = cumsum(green)
|
greenline = cumsum(green)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user