From 7c4bb9cbbdd28aa56329a34b69f2abb65c5866cb Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 19 Jul 2022 12:36:24 -0700 Subject: [PATCH] Include upper endpoint on graphs --- manimlib/mobject/coordinate_systems.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manimlib/mobject/coordinate_systems.py b/manimlib/mobject/coordinate_systems.py index 09a84a97..7f42ec80 100644 --- a/manimlib/mobject/coordinate_systems.py +++ b/manimlib/mobject/coordinate_systems.py @@ -327,6 +327,7 @@ class CoordinateSystem(ABC): 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":