-
Notifications
You must be signed in to change notification settings - Fork 1
Drawing
kosh edited this page Feb 26, 2022
·
2 revisions
A drawing class that uses Matplotlib. Added some methods.
Animated orbits in 3D space. The trajectory is drawn in blue, and the latest five points are drawn in red.
Set shadow=False to remove the shadow on the 2D plane.
- u_seq
- shadow=True
- *args
- **kargs
- d:
Drawing - ani:
matplotlib.animation.FuncAnimation
It can be saved by using ani.save(path, writer) before d.show().
from hundun import Drawing
from hundun.equations import Lorenz
u_seq = Lorenz.get_u_seq(5000)
d, ani = Drawing.trajectory_3d(u_seq)
d.show()