Skip to content

Commit

Permalink
Include upper endpoint on graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Jul 19, 2022
1 parent 0d845d5 commit 7c4bb9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manimlib/mobject/coordinate_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def get_riemann_rectangles(
x_range = [*x_range, dx]

rects = []
x_range[1] = x_range[1] + dx
xs = np.arange(*x_range)
for x0, x1 in zip(xs, xs[1:]):
if input_sample_type == "left":
Expand Down

0 comments on commit 7c4bb9c

Please sign in to comment.