We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1648158 commit 825930bCopy full SHA for 825930b
1 file changed
adafruit_display_shapes/sparkline.py
@@ -146,6 +146,11 @@ def update(self):
146
else:
147
self.y_top = self.y_max
148
149
+ # Guard for y_top and y_bottom being the same
150
+ if self.y_top == self.y_bottom:
151
+ self.y_bottom -= 10
152
+ self.y_top += 10
153
+
154
if len(self._spark_list) > 2:
155
xpitch = (self.width - 1) / (
156
len(self._spark_list) - 1
0 commit comments