Toy実験ように適当な軌跡のアニメーションが欲しかったので作った. 各frameをつくる: import numpy as np import math import itertools import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation PI = math.pi # img_size is 2N x 2N (N, N) = (30, 30) def current_point(r, ang): x = r * math.cos( ang ) y = r * math.sin( ang )…