Scenes up to AnalyzeSineCurve for diffyq part 3

This commit is contained in:
Grant Sanderson 2019-06-03 11:33:39 -07:00
parent 8bb0b4f010
commit 43b82f2c53
3 changed files with 22 additions and 8 deletions

View file

@ -20,4 +20,5 @@ SCENES_IN_ORDER = [
OceanOfPossibilities,
InFouriersShoes,
AnalyzeSineCurve,
SineCurveIsUnrealistic,
]

View file

@ -97,4 +97,20 @@ class InFouriersShoes(PiCreatureScene, WriteHeatEquationTemplate):
class SineCurveIsUnrealistic(TeacherStudentsScene):
def construct(self):
pass
self.student_says(
"But that would\\\\never happen!",
student_index=1,
bubble_kwargs={
"direction": RIGHT,
"height": 3,
"width": 4,
},
target_mode="angry"
)
self.change_student_modes(
"guilty", "angry", "hesitant",
added_anims=[
self.teacher.change, "tease"
]
)
self.wait(2)

View file

@ -628,16 +628,14 @@ class OceanOfPossibilities(TemperatureGraphScene):
phi=80 * DEGREES,
theta=-80 * DEGREES,
)
self.camera.frame_center.move_to(
3 * RIGHT
)
self.begin_ambient_camera_rotation(rate=0.01)
def setup_axes(self):
axes = self.get_three_d_axes(include_numbers=True)
axes.add(axes.input_plane)
# axes.scale(1.25)
axes.shift(1.5 * IN)
axes.scale(0.9)
axes.center()
axes.shift(OUT + RIGHT)
self.add(axes)
self.axes = axes
@ -770,7 +768,6 @@ class OceanOfPossibilities(TemperatureGraphScene):
self.stop_ambient_camera_rotation()
self.move_camera(
theta=-45 * DEGREES,
frame_center=ORIGIN,
added_anims=[
LaggedStartMap(ShowCreation, lines),
LaggedStartMap(
@ -790,7 +787,6 @@ class OceanOfPossibilities(TemperatureGraphScene):
self.wait()
self.move_camera(
theta=-70 * DEGREES,
frame_center=3 * RIGHT,
)
self.surface_boundary_lines = surface_boundary_lines
@ -833,6 +829,7 @@ class OceanOfPossibilities(TemperatureGraphScene):
self.surface_boundary_lines.resume_updating()
self.surface.resume_updating()
self.graph.resume_updating()
self.begin_ambient_camera_rotation(rate=0.01)
self.wait(30)