mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
After running 2to3
This commit is contained in:
@ -150,17 +150,17 @@ class SlopeOfCircleExample(ZoomedScene):
|
||||
|
||||
#Move labels to equation
|
||||
movers = labels.copy()
|
||||
pairs = zip(
|
||||
pairs = list(zip(
|
||||
[movers[1], movers[2], movers[0]],
|
||||
self.circle_equation[1][0:-1:3]
|
||||
)
|
||||
))
|
||||
self.play(*[
|
||||
ApplyMethod(m1.replace, m2)
|
||||
for m1, m2 in pairs
|
||||
])
|
||||
self.wait()
|
||||
|
||||
self.play(*map(FadeOut, [lines, labels, movers]))
|
||||
self.play(*list(map(FadeOut, [lines, labels, movers])))
|
||||
self.remove(full_group)
|
||||
self.add(dot)
|
||||
self.wait()
|
||||
@ -224,8 +224,8 @@ class SlopeOfCircleExample(ZoomedScene):
|
||||
self.play(Blink(morty))
|
||||
self.wait()
|
||||
|
||||
self.play(*map(FadeOut, to_fade))
|
||||
self.play(*map(FadeOut, [radial_line, perp_mark]))
|
||||
self.play(*list(map(FadeOut, to_fade)))
|
||||
self.play(*list(map(FadeOut, [radial_line, perp_mark])))
|
||||
self.wait()
|
||||
|
||||
def show_dx_and_dy(self):
|
||||
@ -341,7 +341,7 @@ class SlopeOfCircleExample(ZoomedScene):
|
||||
)
|
||||
self.play(new_circle.set_stroke, None, 0)
|
||||
self.wait()
|
||||
self.play(*map(FadeOut, [brace, brace_text]))
|
||||
self.play(*list(map(FadeOut, [brace, brace_text])))
|
||||
self.wait()
|
||||
|
||||
def perform_implicit_derivative(self):
|
||||
@ -663,7 +663,7 @@ class RelatedRatesExample(ThreeDScene):
|
||||
self.wait()
|
||||
self.play(ShowCreation(x_line), Write(x_label))
|
||||
self.wait(2)
|
||||
self.play(*map(FadeOut, [x_label, y_label]))
|
||||
self.play(*list(map(FadeOut, [x_label, y_label])))
|
||||
|
||||
self.ladder_brace = ladder_brace
|
||||
self.x_and_y_lines = x_and_y_lines
|
||||
@ -733,9 +733,9 @@ class RelatedRatesExample(ThreeDScene):
|
||||
randy, "Give names"
|
||||
))
|
||||
self.play(Blink(randy))
|
||||
self.play(*map(FadeOut, [
|
||||
self.play(*list(map(FadeOut, [
|
||||
randy, randy.bubble, randy.bubble.content
|
||||
]))
|
||||
])))
|
||||
|
||||
def write_equation(self):
|
||||
self.x_and_y_labels = self.get_x_and_y_labels()
|
||||
@ -827,9 +827,9 @@ class RelatedRatesExample(ThreeDScene):
|
||||
run_time = 8,
|
||||
rate_func = there_and_back
|
||||
)
|
||||
self.play(*map(FadeOut, [
|
||||
self.play(*list(map(FadeOut, [
|
||||
randy, find_dx_dt, alt_equation
|
||||
]))
|
||||
])))
|
||||
self.wait()
|
||||
|
||||
def discuss_lhs_as_function(self):
|
||||
@ -872,9 +872,9 @@ class RelatedRatesExample(ThreeDScene):
|
||||
rate_func = lambda t : 0.5*there_and_back(t)
|
||||
)
|
||||
self.wait()
|
||||
self.play(*map(FadeOut, [
|
||||
self.play(*list(map(FadeOut, [
|
||||
brace, constant_words, function_of_time
|
||||
]))
|
||||
])))
|
||||
self.play(
|
||||
ReplacementTransform(lhs.copy(), derivative_interior),
|
||||
Write(derivative_scaffold),
|
||||
@ -906,10 +906,10 @@ class RelatedRatesExample(ThreeDScene):
|
||||
GrowFromCenter(dt_brace),
|
||||
Write(dt_brace_text, run_time = 2)
|
||||
)
|
||||
self.play(*map(FadeOut, [
|
||||
self.play(*list(map(FadeOut, [
|
||||
self.dy_arrow, self.dy_label,
|
||||
self.dx_arrow, self.dx_label,
|
||||
]))
|
||||
])))
|
||||
self.add(shadow_ladder)
|
||||
self.let_ladder_fall(
|
||||
self.ladder, *self.get_added_anims_for_ladder_fall(),
|
||||
@ -2034,7 +2034,7 @@ class AlternateExample(ZoomedScene):
|
||||
ShowCreation(arrows)
|
||||
)
|
||||
self.wait()
|
||||
self.play(*map(FadeOut, [word, arrows]))
|
||||
self.play(*list(map(FadeOut, [word, arrows])))
|
||||
|
||||
def differentiate_lhs(self):
|
||||
formula = self.formula
|
||||
@ -2124,7 +2124,7 @@ class AlternateExample(ZoomedScene):
|
||||
self.play(ShowCreation(arrow))
|
||||
self.play(Write(equals_dx))
|
||||
self.wait()
|
||||
self.play(*map(FadeOut, [circle, arrow]))
|
||||
self.play(*list(map(FadeOut, [circle, arrow])))
|
||||
|
||||
self.equals_dx = equals_dx
|
||||
|
||||
@ -2301,7 +2301,7 @@ class DerivativeOfNaturalLog(ZoomedScene):
|
||||
update_dot(dot, 0)
|
||||
update_label(label)
|
||||
|
||||
self.play(*map(FadeIn, [dot, label]))
|
||||
self.play(*list(map(FadeIn, [dot, label])))
|
||||
self.play(
|
||||
UpdateFromAlphaFunc(dot, update_dot),
|
||||
UpdateFromFunc(label, update_label),
|
||||
@ -2322,7 +2322,7 @@ class DerivativeOfNaturalLog(ZoomedScene):
|
||||
run_time = 3,
|
||||
rate_func = lambda t : 1-0.6*smooth(t),
|
||||
)
|
||||
self.play(*map(FadeOut, [xy_start, label]))
|
||||
self.play(*list(map(FadeOut, [xy_start, label])))
|
||||
|
||||
self.dot = dot
|
||||
|
||||
@ -2654,9 +2654,9 @@ class Chapter6PatreonThanks(PatreonThanks):
|
||||
|
||||
class Thumbnail(AlternateExample):
|
||||
def construct(self):
|
||||
title = VGroup(*map(TextMobject, [
|
||||
title = VGroup(*list(map(TextMobject, [
|
||||
"Implicit", "Differentiation"
|
||||
]))
|
||||
])))
|
||||
title.arrange_submobjects(DOWN)
|
||||
title.scale(3)
|
||||
title.next_to(ORIGIN, UP)
|
||||
|
Reference in New Issue
Block a user