This post is about Manim code for tracing a portion of a graph and assigning a dot to move along that portion. In this animation, we created a cubic graph with y = x3 - 3x2 + 2x + 1.5 and trace a portion of this curve between x = -0.3 and x = 2.2 then assign a point to move along this portion.

Below is the Python code, calling the Manim library, for creating a circle using parametric equations. The circle is parallel to the xy-plane and has a radius of 4 units . It is located 2 units above the xy-plane.

A cylindrical surface of radius radius 4 and axis on the xz-plane and at a distance of 1.5 units from the xy-plane. The thickness of the cylinder is 4 units and the curvilinear length is half the circle.

3Blue1Brown Version
Head of .py file: from manim import *
Rendering video via command line
python directory_path_to_manim_libraries directory_path_to_python_file.py

ManimCE Version
Head of .py file: from manim import *
Rendering video via command line
manim directory_path_to_python_file.py

Certbot will let you manage your SSL certificates, ensuring that your server will automatically renew Let's Encrypt without you doing it by hand.

Check first for sample output of this Image Gallery.

Requirements

  • Core Modules: Image, Block, Views
  • Contributed Module: Colorbox