mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Small bug fixes to NumberPlane
This commit is contained in:
parent
9cdf35475d
commit
d8896e299e
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,7 @@ class NumberPlane(Axes):
|
||||||
def get_lines_parallel_to_axis(self, axis1, axis2, freq, ratio):
|
def get_lines_parallel_to_axis(self, axis1, axis2, freq, ratio):
|
||||||
line = Line(axis1.get_start(), axis1.get_end())
|
line = Line(axis1.get_start(), axis1.get_end())
|
||||||
dense_freq = (1 + ratio)
|
dense_freq = (1 + ratio)
|
||||||
step = 1 / dense_freq
|
step = (1 / dense_freq) * freq
|
||||||
|
|
||||||
lines1 = VGroup()
|
lines1 = VGroup()
|
||||||
lines2 = VGroup()
|
lines2 = VGroup()
|
||||||
|
@ -336,6 +336,7 @@ class NumberPlane(Axes):
|
||||||
axis.get_edge_center(edge), direction,
|
axis.get_edge_center(edge), direction,
|
||||||
buff=buff
|
buff=buff
|
||||||
)
|
)
|
||||||
|
label.shift_onto_screen(buff=MED_SMALL_BUFF)
|
||||||
return label
|
return label
|
||||||
|
|
||||||
def get_axis_labels(self, x_label_tex="x", y_label_tex="y"):
|
def get_axis_labels(self, x_label_tex="x", y_label_tex="y"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue