Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fixed drawing bars of height 0

Ben Hambrechtaa178628a88c
diff --git a/active_projects/eop/histograms.py b/active_projects/eop/histograms.py
index 01d1c356a..21bae1279 100644
--- a/active_projects/eop/histograms.py
+++ b/active_projects/eop/histograms.py
@@ -126,6 +126,10 @@ class Histogram(VMobject):
stroke_width = self.bar_stroke_width,
stroke_color = self.stroke_color,
)
+ if bar.height == 0:
+ bar.height = 0.01
+ bar.generate_points()
+
t = float(x - self.x_min)/(self.x_max - self.x_min)
bar_color = interpolate_color(
self.start_color,