When I attempt to render the parametric equations:
x = 0 y = t z = t
, Manim does not plot them.
Is something wrong with manim's installation on my computer, something wrong with my code, or something else I may have missed? Here is my code:
from manim import *
class Tute1(ThreeDScene):
def construct(self):
axes = ThreeDAxes(
x_range=[-6, 6, 1],
y_range=[-125,125, 25],
z_range=[0,250, 25],
axis_config={"include_numbers": True}
)
graph = ParametricFunction(
lambda t: np.array([
0,
t,
t
]), t_range=[0, 250], color=RED
).set_shade_in_3d(True)
self.add(axes)
self.move_camera(phi=60 * DEGREES)
self.move_camera(theta=-45 * DEGREES)
self.play(Create(graph))
self.wait()
self.begin_ambient_camera_rotation(
rate=PI / 10, about="phi"
)
self.wait(5)
self.stop_ambient_camera_rotation()`
I have tried a number of other plotting methods, but I need to use ParametricFunction
.