From c3e6e6d8fea4bf71b633d5c926175fb1a7d167ff Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 28 Aug 2018 21:20:59 -0400 Subject: [PATCH] column math --- good.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/good.py b/good.py index 45140e6..b15930c 100644 --- a/good.py +++ b/good.py @@ -44,15 +44,19 @@ def get_goodreads_stats(): return pages, books def get_stats(pages, books): + + col_x = [53, 90, 161] + col_y = [17, 45, 75] + coords = { "year": [ - (53, 17),(107,17),(161,17) + (col_x[0], col_y[0]), (col_x[1],col_y[0]), (col_x[2],col_y[0]) ], "books": [ - (53, 45),(107,45),(161,45) + (col_x[0], col_y[1]), (col_x[1],col_y[1]), (col_x[2],col_y[1]) ], "pages": [ - (53, 75),(107,75),(161,75) + (col_x[0], col_y[2]), (col_x[1],col_y[2]), (col_x[2],col_y[2]) ], } _stats = []