From 8c240402a91389820102886a1eefb07e5008aa38 Mon Sep 17 00:00:00 2001 From: Martin Paprcka Date: Wed, 30 Oct 2024 17:53:03 +0100 Subject: [PATCH] Fix of bar width calucation in bar width calucation in BarPlot --- kivy_garden/graph/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy_garden/graph/__init__.py b/kivy_garden/graph/__init__.py index 50a02cb..0e0c4a3 100644 --- a/kivy_garden/graph/__init__.py +++ b/kivy_garden/graph/__init__.py @@ -1417,7 +1417,7 @@ def update_bar_width(self, *ar): point_width = ( len(self.points) * - float(abs(self.graph.xmax) + abs(self.graph.xmin)) / + float(self.graph.xmax - self.graph.xmin) / float(abs(max(self.points)[0]) + abs(min(self.points)[0]))) if not self.points: