Skip to content

Commit

Permalink
fixed for current commit of manim
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmermant committed Mar 10, 2019
1 parent b806940 commit d1079cb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions manim_tutorial_P37.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class FieldWithAxes(Scene):
}
def construct(self):
plane = NumberPlane(**self.plane_kwargs)
plane.main_lines.fade(.9)
#plane.main_lines.fade(.9) #doesn't work in most recent commit
plane.add(plane.get_axis_labels())
self.add(plane)

Expand Down Expand Up @@ -372,9 +372,8 @@ class ExampleThreeD(ThreeDScene):
"point_charge_loc" : 0.5*RIGHT-1.5*UP,
}
def construct(self):
#self.set_camera_position(0, -np.pi/2) #Old code
plane = NumberPlane(**self.plane_kwargs)
plane.main_lines.fade(.9)
#plane.main_lines.fade(.9) #Doesn't work in most recent commit
plane.add(plane.get_axis_labels())
self.add(plane)

Expand All @@ -386,8 +385,8 @@ def construct(self):
self.set_camera_orientation(phi=PI/3,gamma=PI/5)
self.play(ShowCreation(field2D))
self.wait()
self.move_camera(gamma=0,run_time=1)
self.move_camera(phi=3/4*PI, theta=-PI/2)
#self.move_camera(gamma=0,run_time=1) #Doesn't work in most recent commit
#self.move_camera(phi=3/4*PI, theta=-PI/2) #Doesn't work in most recent commit
self.begin_ambient_camera_rotation(rate=0.1)
self.wait(6)

Expand All @@ -408,7 +407,7 @@ class EFieldInThreeD(ThreeDScene):
}
def construct(self):
plane = NumberPlane(**self.plane_kwargs)
plane.main_lines.fade(.9)
#plane.main_lines.fade(.9) #Doesn't work in most recent commit
plane.add(plane.get_axis_labels())
self.add(plane)

Expand All @@ -426,7 +425,7 @@ def construct(self):

self.play(ShowCreation(field3D))
self.wait()
self.move_camera(0.8*np.pi/2, -0.45*np.pi)
#self.move_camera(0.8*np.pi/2, -0.45*np.pi) #Doesn't work in most recent commit
self.begin_ambient_camera_rotation()
self.wait(6)

Expand Down Expand Up @@ -456,7 +455,7 @@ class MovingCharges(Scene):
}
def construct(self):
plane = NumberPlane(**self.plane_kwargs)
plane.main_lines.fade(.9)
#plane.main_lines.fade(.9) #Doesn't work in most recent commit
plane.add(plane.get_axis_labels())
self.add(plane)

Expand Down Expand Up @@ -534,7 +533,7 @@ class FieldOfMovingCharge(Scene):
}
def construct(self):
plane = NumberPlane(**self.plane_kwargs)
plane.main_lines.fade(.9)
#plane.main_lines.fade(.9) #Doesn't work in most recent commit
plane.add(plane.get_axis_labels())
self.add(plane)

Expand Down

0 comments on commit d1079cb

Please sign in to comment.