A community-maintained Python framework for creating mathematical animations.
Fix formatting
Jeff Smith9d986c83ec50
diff --git a/manim/scene/graph_scene.py b/manim/scene/graph_scene.pyindex cc581438c..34c482d17 100644--- a/manim/scene/graph_scene.py+++ b/manim/scene/graph_scene.py@@ -56,7 +56,7 @@ class GraphScene(Scene):"x_label_position": UP + RIGHT, # where to place the label of the x axis"y_label_position": UP + RIGHT, # where to place the label of the y axis"x_axis_config": {},- "y_axis_config": {}+ "y_axis_config": {},}def setup(self):@@ -90,19 +90,20 @@ class GraphScene(Scene):# The dictionary we update here are sensible defaults# that can be overridden through x_axis_config- self.x_axis_config = dict({- "x_min": self.x_min,- "x_max": self.x_max,- "unit_size": self.space_unit_to_x,- "leftmost_tick": self.x_leftmost_tick,- "numbers_with_elongated_ticks": self.x_labeled_nums,- "color": self.axes_color,- "include_tip": self.include_tip,- }, **self.x_axis_config)-- x_axis = NumberLine(- **self.x_axis_config+ self.x_axis_config = dict(+ {+ "x_min": self.x_min,+ "x_max": self.x_max,+ "unit_size": self.space_unit_to_x,+ "leftmost_tick": self.x_leftmost_tick,+ "numbers_with_elongated_ticks": self.x_labeled_nums,+ "color": self.axes_color,+ "include_tip": self.include_tip,+ },+ **self.x_axis_config,)++ x_axis = NumberLine(**self.x_axis_config)x_axis.shift(self.graph_origin - x_axis.number_to_point(0))if len(self.x_labeled_nums) > 0:if self.exclude_zero_label:@@ -129,21 +130,22 @@ class GraphScene(Scene):# The dictionary we update here are sensible defaults# that can be overridden through y_axis_config- self.y_axis_config = dict({- "x_min": self.y_min,- "x_max": self.y_max,- "unit_size": self.space_unit_to_y,- "leftmost_tick": self.y_bottom_tick,- "numbers_with_elongated_ticks": self.y_labeled_nums,- "color": self.axes_color,- "line_to_number_vect": LEFT,- "label_direction": LEFT,- "include_tip": self.include_tip,- }, **self.y_axis_config)-- y_axis = NumberLine(- **self.y_axis_config+ self.y_axis_config = dict(+ {+ "x_min": self.y_min,+ "x_max": self.y_max,+ "unit_size": self.space_unit_to_y,+ "leftmost_tick": self.y_bottom_tick,+ "numbers_with_elongated_ticks": self.y_labeled_nums,+ "color": self.axes_color,+ "line_to_number_vect": LEFT,+ "label_direction": LEFT,+ "include_tip": self.include_tip,+ },+ **self.y_axis_config,)++ y_axis = NumberLine(**self.y_axis_config)y_axis.shift(self.graph_origin - y_axis.number_to_point(0))y_axis.rotate(np.pi / 2, about_point=y_axis.number_to_point(0))if len(self.y_labeled_nums) > 0: