def construct(self):
    self.setup_axes(animate=True)
    func_graph = self.get_graph(self.function, self.function_color)
    approx_graphs = [self.get_graph(f, self.approximation_color) for f in self.taylor]
    term_num = [TexMobject(('n = ' + str(n)), aligned_edge=TOP) for n in range(0, 8)]
    term = VectorizedPoint((3 * DOWN))
    approx_graph = VectorizedPoint(self.input_to_graph_point(self.center_point, func_graph))
    self.play(ShowCreation(func_graph))
    for (n, graph) in enumerate(approx_graphs):
        self.play(Transform(approx_graph, graph, run_time=2), Transform(term, term_num[n]))
        self.wait()
def construct(self):
    self.setup_axes(animate=True)
    func_graph = self.get_graph(self.function, self.function_color)
    approx_graphs = [self.get_graph(f, self.approximation_color) for f in self.taylor]
    term_num = [TexMobject(('n = ' + str(n)), aligned_edge=TOP) for n in range(0, 8)]
    term = VectorizedPoint((3 * DOWN))
    approx_graph = VectorizedPoint(self.input_to_graph_point(self.center_point, func_graph))
    self.play(ShowCreation(func_graph))
    for (n, graph) in enumerate(approx_graphs):
        self.play(Transform(approx_graph, graph, run_time=2), Transform(term, term_num[n]))
        self.wait()