diff --git a/manim/mobject/graphing/probability.py b/manim/mobject/graphing/probability.py index d1f960d9c7..fb86b2b777 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, int(np.ceil(-np.log10(y_step_target))))] + y_range = [ + *y_range, + round(y_step_target, int(np.ceil(-np.log10(y_step_target)))), + ] if x_length is None: x_length = min(len(self.values), config.frame_width - 2)