Skip to content

Drawing

kosh edited this page Feb 26, 2022 · 2 revisions

A drawing class that uses Matplotlib. Added some methods.

Drawing

trajectory_3d classmethod

dev

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.

Parameters

  • u_seq
  • shadow=True
  • *args
  • **kargs

Returns

  • d: Drawing
  • ani: matplotlib.animation.FuncAnimation

Example

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()

img:embedding_T

Clone this wiki locally