diff --git a/manim/mobject/graphing/probability.py b/manim/mobject/graphing/probability.py index ef6415b2ea..fb7d35129b 100644 --- a/manim/mobject/graphing/probability.py +++ b/manim/mobject/graphing/probability.py @@ -281,7 +281,10 @@ def __init__( elif len(y_range) == 2: y_step_target = max(self.values) / y_length - y_range = [*y_range, round(y_step_target, max(2, int(np.ceil(-np.log10(y_step_target)))))] + y_range = [ + *y_range, + round(y_step_target, max(2, int(np.ceil(-np.log10(y_step_target))))) + ] if x_length is None: x_length = min(len(self.values), config.frame_width - 2)