Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix the position of the y-axis label

Guillermo Garza88b8bf96661f
diff --git a/manimlib/scene/graph_scene.py b/manimlib/scene/graph_scene.py
index 9e7dac3db..dcfa759cc 100644
--- a/manimlib/scene/graph_scene.py
+++ b/manimlib/scene/graph_scene.py
@@ -119,7 +119,7 @@ class GraphScene(Scene):
if self.y_axis_label:
y_label = TextMobject(self.y_axis_label)
y_label.next_to(
- y_axis.get_tick_marks(), UP + RIGHT,
+ y_axis.get_corner(UP + RIGHT), UP + RIGHT,
buff=SMALL_BUFF
)
y_label.shift_onto_screen()