Permalink
Browse files

getting rid of "length" values/kwargs. not needed and complicates.

  • Loading branch information...
stnbu committed Sep 8, 2018
1 parent c52721c commit 2f897a86fafce62e4654cbd63f181325c702b499
Showing with 3 additions and 6 deletions.
  1. +3 −6 svg_graph/base.py
@@ -5,15 +5,12 @@
class LineGraph(object):
def __init__(self, title, points, height=400, width=600, normalize=True, length=None):
def __init__(self, title, points, height=400, width=600, normalize=True):
self.title = title
self.height = height
self.width = width
if length is not None:
self.length = length
else:
self.length = len(points)
self.points = self.normalize(list(points))
points = list(points) # we should be dealing with smallish data sets.
self.points = self.normalize(points)
def normalize(self, points):
x_min = min([x for x, _ in points])

0 comments on commit 2f897a8

Please sign in to comment.