A community-maintained Python framework for creating mathematical animations.
Update manim/scene/graph_scene.py: style improvement
Philipp Imhof95906693109f
diff --git a/manim/scene/graph_scene.py b/manim/scene/graph_scene.pyindex 9bdfa0a92..a1f456d02 100644--- a/manim/scene/graph_scene.py+++ b/manim/scene/graph_scene.py@@ -109,16 +109,11 @@ class GraphScene(Scene):x_axis.add_numbers(*self.x_labeled_nums)if self.x_axis_label:x_label = TextMobject(self.x_axis_label)- if self.include_tip:- x_label.next_to(- x_axis.get_tips(), self.x_label_position,- buff=SMALL_BUFF- )- else:- x_label.next_to(- x_axis.get_tick_marks(), self.x_label_position,- buff=SMALL_BUFF- )+ x_label.next_to(+ x_axis.get_tips() if self.include_tip else x_axis.get_tick_marks(),+ self.x_label_position,+ buff=SMALL_BUFF+ )x_label.shift_onto_screen()x_axis.add(x_label)self.x_axis_label_mob = x_label