mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
arrange_submobjects -> arrange
This commit is contained in:
@ -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]]
|
||||
|
Reference in New Issue
Block a user