From f707f9cf891afc3a2883bf3d877199ad5f7cb9f6 Mon Sep 17 00:00:00 2001 From: maggie Date: Sun, 16 Feb 2025 13:54:24 -0500 Subject: [PATCH 1/2] changed graph.t_min and graph.t_max to updated t_range tuple values --- manim/mobject/graphing/coordinate_systems.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manim/mobject/graphing/coordinate_systems.py b/manim/mobject/graphing/coordinate_systems.py index b21879b90b..cce59b6dc3 100644 --- a/manim/mobject/graphing/coordinate_systems.py +++ b/manim/mobject/graphing/coordinate_systems.py @@ -1390,8 +1390,8 @@ def construct(self): self.add(ax, curve, area) """ if x_range is None: - a = graph.t_min - b = graph.t_max + a = graph.t_range[0] + b = graph.t_range[1] else: a, b = x_range if bounded_graph is not None: From c4e52f2b7d5b4c76cf808555c7ad3b35bca7dc88 Mon Sep 17 00:00:00 2001 From: maggie Date: Sun, 16 Feb 2025 13:56:23 -0500 Subject: [PATCH 2/2] changed bounded_graph.t_min and t_max variables to updated t_range tuple values --- manim/mobject/graphing/coordinate_systems.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/manim/mobject/graphing/coordinate_systems.py b/manim/mobject/graphing/coordinate_systems.py index cce59b6dc3..c2992e663e 100644 --- a/manim/mobject/graphing/coordinate_systems.py +++ b/manim/mobject/graphing/coordinate_systems.py @@ -1395,16 +1395,16 @@ def construct(self): else: a, b = x_range if bounded_graph is not None: - if bounded_graph.t_min > b: + if bounded_graph.t_range[0] > b: raise ValueError( - f"Ranges not matching: {bounded_graph.t_min} < {b}", + f"Ranges not matching: {bounded_graph.t_range[0]} < {b}", ) - if bounded_graph.t_max < a: + if bounded_graph.t_range[1] < a: raise ValueError( - f"Ranges not matching: {bounded_graph.t_max} > {a}", + f"Ranges not matching: {bounded_graph.t_range[1]} > {a}", ) - a = max(a, bounded_graph.t_min) - b = min(b, bounded_graph.t_max) + a = max(a, bounded_graph.t_range[0]) + b = min(b, bounded_graph.t_range[1]) if bounded_graph is None: points = (