LoginSignup
1
0

More than 3 years have passed since last update.

manimの作法 その37

Posted at

概要

manimの作法、調べてみた。
FunctionGraph使ってみた。

サンプルコード

from manimlib.imports import *


class test(Scene):
    def construct(self):
        grid = NumberPlane(axis_config = {"stroke_color": BLACK})
        func = FunctionGraph(lambda x: x ** 2 - 4, stroke_width = 6, color = GOLD)
        func2 = FunctionGraph(lambda x: 2 * np.exp(1) ** (-0.25 * x ** 2), stroke_width = 6, color = RED)
        self.add(grid, func, func2)
        self.wait()


生成した動画

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0