diff --git a/manimlib/mobject/coordinate_systems.py b/manimlib/mobject/coordinate_systems.py index bb8b5aa160..3fd4a468d7 100644 --- a/manimlib/mobject/coordinate_systems.py +++ b/manimlib/mobject/coordinate_systems.py @@ -417,7 +417,7 @@ def get_area_under_graph(self, graph, x_range, fill_color=BLUE, fill_opacity=0.5 raise Exception("Argument `graph` must have attribute `x_range`") alpha_bounds = [ - inverse_interpolate(*graph.x_range, x) + inverse_interpolate(*graph.x_range[:2], x) for x in x_range ] sub_graph = graph.copy()