def construct(self):
    self.setup_axes()
    graph = self.get_graph(s_func, color=DISTANCE_COLOR, x_min=0, x_max=8)
    tangent = self.get_secant_slope_group(6, graph, dx=0.01).secant_line
    v_line = self.get_vertical_line_to_graph(6, graph, line_class=DashedLine)
    v_line.scale_in_place(2)
    v_line.set_color(WHITE)
    (graph_label, plus_C) = full_label = TexMobject('s(t) = 4t^2 - \\frac{1}{3}t^3', '+C')
    plus_C.set_color(YELLOW)
    full_label.next_to(graph.points[(- 1)], DOWN)
    full_label.to_edge(RIGHT)
    self.play(ShowCreation(graph))
    self.play(FadeIn(graph_label))
    self.wait()
    self.play(graph.shift, UP, run_time=2, rate_func=there_and_back)
    self.play(ShowCreation(tangent))
    graph.add(tangent)
    self.play(ShowCreation(v_line))
    self.play(graph.shift, (2 * DOWN), run_time=4, rate_func=there_and_back)
    self.play(Write(plus_C))
    self.play(graph.shift, (2 * UP), rate_func=there_and_back, run_time=4)
    self.wait()
def construct(self):
    self.setup_axes()
    graph = self.get_graph(s_func, color=DISTANCE_COLOR, x_min=0, x_max=8)
    tangent = self.get_secant_slope_group(6, graph, dx=0.01).secant_line
    v_line = self.get_vertical_line_to_graph(6, graph, line_class=DashedLine)
    v_line.scale_in_place(2)
    v_line.set_color(WHITE)
    (graph_label, plus_C) = full_label = TexMobject('s(t) = 4t^2 - \\frac{1}{3}t^3', '+C')
    plus_C.set_color(YELLOW)
    full_label.next_to(graph.points[(- 1)], DOWN)
    full_label.to_edge(RIGHT)
    self.play(ShowCreation(graph))
    self.play(FadeIn(graph_label))
    self.wait()
    self.play(graph.shift, UP, run_time=2, rate_func=there_and_back)
    self.play(ShowCreation(tangent))
    graph.add(tangent)
    self.play(ShowCreation(v_line))
    self.play(graph.shift, (2 * DOWN), run_time=4, rate_func=there_and_back)
    self.play(Write(plus_C))
    self.play(graph.shift, (2 * UP), rate_func=there_and_back, run_time=4)
    self.wait()