Visualizers
Reusable customizable plots and animations, independent of numerical solvers.
-
engineeringkit.visualizers.animate_displacement(t, displacement, *, interval=30)[source]
Animate 1D displacement [m]; return (figure, FuncAnimation).
Input samples play at interval milliseconds/frame, independently of physical
time. Retain the animation until displaying or saving it.
-
engineeringkit.visualizers.plot_history(t, history, labels=None, ax=None)[source]
Plot scalar/vector histories; return (figure, axes). Time is in seconds.
State labels should include units, for example x [m].