Skip to content

Commit 13b9ebc

Browse files
author
Margaret Matocha
committed
Revert "Updated off-by-one erros due to improper rounding to integer in sparkline.py and display_shapes_sparkline.ticks.py"
This reverts commit 99435d8.
1 parent 99435d8 commit 13b9ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_shapes/sparkline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def update(self):
139139
self.y_top = self.y_max
140140

141141
if len(self._spark_list) > 2:
142-
xpitch = self.width / (
142+
xpitch = (self.width-1) / (
143143
len(self._spark_list) - 1
144144
) # this is a float, only make int when plotting the line
145145

0 commit comments

Comments
 (0)