Permalink
Browse files

cannot `Points(foo, color="bar")` in py < 3.5

  • Loading branch information...
stnbu committed Sep 9, 2018
1 parent 130f21a commit d97639c8ca8d6293a03d4cfb4d2ccd6f5b1e62f0
Showing with 3 additions and 1 deletion.
  1. +3 −1 svg_graph/base.py
@@ -19,7 +19,9 @@ def __init__(self, title, points_set, height=400, width=600, normalize=True):
self.width = width
self.points_set = []
for points in points_set:
self.points_set.append(Points(self.normalize(points), color=points.color))
p = Points(self.normalize(points))
p.color = points.color
self.points_set.append(p)
def normalize(self, points):
x_min = min([x for x, _ in points])

0 comments on commit d97639c

Please sign in to comment.