arrange_submobjects -> arrange

This commit is contained in:
Grant Sanderson
2019-02-04 14:54:25 -08:00
parent 47555652e8
commit 20f25615a6
96 changed files with 915 additions and 911 deletions

View File

@ -133,7 +133,7 @@ class CoordinatesAsScalars(VectorScene):
scaled_v = Vector(factor*v.get_end(), color = v.get_color())
scaled_label = VMobject(coord.copy(), label.copy())
scaled_label.arrange_submobjects(RIGHT, buff = 0.1)
scaled_label.arrange(RIGHT, buff = 0.1)
scaled_label.move_to(label, DOWN+RIGHT)
scaled_label.shift((scaled_v.get_end()-v.get_end())/2)
coord_copy = coord.copy()
@ -445,7 +445,7 @@ class NameLinearCombinations(Scene):
equation = TexMobject([
"a", "\\vec{\\textbf{v}}", "+", "b", "\\vec{\\textbf{w}}"
])
equation.arrange_submobjects(buff = 0.1, aligned_edge = DOWN)
equation.arrange(buff = 0.1, aligned_edge = DOWN)
equation.split()[1].set_color(v_color)
equation.split()[4].set_color(w_color)
a, b = np.array(equation.split())[[0, 3]]
@ -591,7 +591,7 @@ class DefineSpan(Scene):
equation = TexMobject([
"a", "\\vec{\\textbf{v}}", "+", "b", "\\vec{\\textbf{w}}"
])
equation.arrange_submobjects(buff = 0.1, aligned_edge = DOWN)
equation.arrange(buff = 0.1, aligned_edge = DOWN)
equation.split()[1].set_color(v_color)
equation.split()[4].set_color(w_color)
a, b = np.array(equation.split())[[0, 3]]