I have done this with python and matplotlib but I think there must be a faster more sophisticated option. my Python script is slow and cumbersome. I couldn't find anything like imagemagick specific to the task of generating vector images. I have all the maths and algorithms ready but no clear idea what tool I ought to be using to generate thousands of frames efficiently. The code attached here is a simplified version. Is there a faster, graphics dedicated utility best with vector construction? Am I foolish to use python and this slowish library?
-- Molly J
#! /usr/bin/python3
import numpy as np
import matplotlib.pyplot as plt
ax = plt.figure().add_subplot()
plt.rcParams["figure.figsize"] = [8.0, 8.0]
plt.rcParams["figure.autolayout"] = True
ax.set_axis_off()
t = np.linspace(-4 * np.pi, 4 * np.pi, 100000)
# SIMPLIFIED FUNCTIONS
x=np.cos(13. *t) * (2. * np.sin(83. *t) + 5.)
y=np.sin(13. *t) * (2. * np.sin(83. *t) + 5.)
ax.plot(x, y, label='parametric curve')
ax.legend()
plt.show()
