%%manim -qm SineWave """### Example 2: Animating a Mathematical Function""" from manim…
- User
%%manim -qm SineWave """### Example 2: Animating a Mathematical Function"""
from manim import *
class SineWave(Scene): def construct(self): axes = Axes( x_range=[0, 10, 1], y_range=[-2, 2, 1], x_length=10, y_length=4, axis_config={"include_numbers": True}, )
sine_func = axes.plot(lambda x: np.sin(x), color=BLUE) sine_label = axes.get_graph_label(sine_func, "\sin(x)", x_val=10, direction=UP) self.play(Create(axes)) self.play(Create(sine_func), Write(sine_label)) self.wait()Manim Community v0.18.1
[09/20/24 11:00:34] ERROR LaTeX compilation error: LaTeX Error: tex_file_writing.py:314 File `preview.sty' not found.
ERROR LaTeX compilation error: Emergency stop. tex_file_writing.py:314ValueError: latex error converting to dvi. See log output above or the log file: media\Tex\6ecf9f51170c1a70.log
- Assistant
It seems you're encountering a LaTeX compilation error when running your Manim code. The specific error message is: