Manim's method 15

Overview

I checked manim's method. Dot, I tried using it.

Sample code

from manimlib.imports import *

class test(Scene):
	def construct(self):
		dots = dict()
		annos = dict()
		var_index = 0
		for x in range(-7, 8):
			for y in range(-4, 5):
				annos[f"{x}{y}"] = TexMobject(f"({x}, {y})")
				dots[f"{var_index}"] = Dot(np.array([x, y, 0]))
				var_index = var_index + 1
		for anno, dot in zip(annos.values(), dots.values()):
			self.add(anno)
			self.add(dot)
			self.wait(0.2)
			self.remove(anno)


Generated video

https://www.youtube.com/watch?v=jjD-SdepSkA

that's all.

Recommended Posts

Manim's method 13
Manim's method 2
Manim's method 17
Manim's method 5
Manim's method 3
Manim's method 15
Manim's method 11
Manim's method 16
Manim's method 20
Manim's method 10
Manim's method 9
Manim's method 6
Manim's method 21
Manim's method 4
Manim's method 8
Manim's method 14
Manim's method 22
Manim's method 19
Manim's method 12
Manim's method part 23
manim's manners
Binary method
Special method
Special method
Understand k-means method
Clustering of clustering method
Dictionary items method
[PyTorch] Installation method
N cross method
Image collection method
Regression analysis method
Gradient method implementation 1
Python-peewee connection method
Class method static method
youtube-dl update method
Monte Carlo method
Mode-Matching Method Simulation_Python
Johnson method (python)
[Python] Semi-Lagrange method