from manim import *
class Start(Scene):
def construct(self):
axs = Axes(x_range=[-5,5], y_range=[-5,5], x_length=6, y_length=7,
axis_config = {'include_tip': False}).add_coordinates()
graph = axs.plot(lambda x : 2*x**2 - 1, x_range=[-2 , 2])
graph_label = axs.get_axis_labels(x_label = "x", y_label = "f(x)")
T1 = Tex("Hello World!").to_edge(DR)
self.play(DrawBorderThenFill(axs))
self.play(FadeIn(graph_label))
self.wait(2)
self.play(Create(graph))
self.wait(2)
self.add(T1)
self.wait(2)
댓글 0