From d8896e299e8b200f8b2187236fe4e12fe9d59500 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 23 Mar 2019 10:51:47 -0700 Subject: [PATCH] Small bug fixes to NumberPlane --- manimlib/mobject/coordinate_systems.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/coordinate_systems.py b/manimlib/mobject/coordinate_systems.py index 6d9a5afb..b3d2cc35 100644 --- a/manimlib/mobject/coordinate_systems.py +++ b/manimlib/mobject/coordinate_systems.py @@ -288,7 +288,7 @@ class NumberPlane(Axes): def get_lines_parallel_to_axis(self, axis1, axis2, freq, ratio): line = Line(axis1.get_start(), axis1.get_end()) dense_freq = (1 + ratio) - step = 1 / dense_freq + step = (1 / dense_freq) * freq lines1 = VGroup() lines2 = VGroup() @@ -336,6 +336,7 @@ class NumberPlane(Axes): axis.get_edge_center(edge), direction, buff=buff ) + label.shift_onto_screen(buff=MED_SMALL_BUFF) return label def get_axis_labels(self, x_label_tex="x", y_label_tex="y"):