mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
arrange_submobjects -> arrange
This commit is contained in:
@ -277,7 +277,7 @@ class SelfSimilarFractalsAsSubset(Scene):
|
||||
)
|
||||
for submob in fractals:
|
||||
submob.set_width(self.fractal_width)
|
||||
fractals.arrange_submobjects(RIGHT)
|
||||
fractals.arrange(RIGHT)
|
||||
fractals[-1].next_to(VGroup(*fractals[:-1]), DOWN)
|
||||
|
||||
title = TextMobject("Self-similar fractals")
|
||||
@ -738,7 +738,7 @@ class GeneralWordForMeasurement(Scene):
|
||||
words = VGroup(*list(map(TextMobject, [
|
||||
"Length", "Area", "Volume"
|
||||
])))
|
||||
words.arrange_submobjects(RIGHT, buff = 2*LARGE_BUFF)
|
||||
words.arrange(RIGHT, buff = 2*LARGE_BUFF)
|
||||
words.next_to(measure, DOWN, buff = 2*LARGE_BUFF)
|
||||
colors = color_gradient([BLUE_B, BLUE_D], len(words))
|
||||
for word, color in zip(words, colors):
|
||||
@ -987,7 +987,7 @@ class DefineTwoDimensional(PiCreatureScene):
|
||||
top_group = VGroup(top_length, top_mass)
|
||||
bottom_group = VGroup(bottom_length, bottom_mass)
|
||||
for group in top_group, bottom_group:
|
||||
group.arrange_submobjects(
|
||||
group.arrange(
|
||||
DOWN,
|
||||
buff = MED_LARGE_BUFF,
|
||||
aligned_edge = LEFT
|
||||
@ -1120,7 +1120,7 @@ class DefineSierpinskiDimension(DefineTwoDimensional):
|
||||
|
||||
equation = self.distilled_equation
|
||||
self.play(
|
||||
equation.arrange_submobjects, RIGHT,
|
||||
equation.arrange, RIGHT,
|
||||
equation.scale, self.equation_scale_factor,
|
||||
equation.to_corner, UP+RIGHT,
|
||||
run_time = 2
|
||||
@ -1602,7 +1602,7 @@ class ShowDiskScaling(Scene):
|
||||
shape.set_stroke(width = 0)
|
||||
shape.set_fill(opacity = 1)
|
||||
shapes.set_color_by_gradient(BLUE_B, BLUE_E)
|
||||
shapes.arrange_submobjects(RIGHT, buff = LARGE_BUFF)
|
||||
shapes.arrange(RIGHT, buff = LARGE_BUFF)
|
||||
shapes.next_to(title, DOWN)
|
||||
for shape in shapes:
|
||||
self.play(FadeIn(shape))
|
||||
@ -2099,7 +2099,7 @@ class BoxCountingWithBritain(BoxCountingScene):
|
||||
|
||||
simpler_eq = VGroup(N, approx, c, s, dim)
|
||||
simpler_eq.generate_target()
|
||||
simpler_eq.target.arrange_submobjects(buff = SMALL_BUFF)
|
||||
simpler_eq.target.arrange(buff = SMALL_BUFF)
|
||||
simpler_eq.target.move_to(N, LEFT)
|
||||
simpler_eq.target[-1].next_to(
|
||||
simpler_eq.target[-2].get_corner(UP+RIGHT),
|
||||
@ -2464,7 +2464,7 @@ class ListDimensionTypes(PiCreatureScene):
|
||||
"Hausdorff dimension",
|
||||
"Packing dimension"
|
||||
])))
|
||||
types.arrange_submobjects(DOWN, aligned_edge = LEFT)
|
||||
types.arrange(DOWN, aligned_edge = LEFT)
|
||||
for text in types:
|
||||
self.play(
|
||||
Write(text, run_time = 1),
|
||||
|
Reference in New Issue
Block a user