Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 15, 2024
1 parent 8b20941 commit 9f5c2df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manim/mobject/graphing/probability.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f5c2df

Please sign in to comment.