Skip to content

Instantly share code, notes, and snippets.

@Muhammad-Yunus
Created April 15, 2020 00:59
Show Gist options
  • Save Muhammad-Yunus/7e4a8647cb8619fbfbfbd3d7ebb14f55 to your computer and use it in GitHub Desktop.
Save Muhammad-Yunus/7e4a8647cb8619fbfbfbd3d7ebb14f55 to your computer and use it in GitHub Desktop.
Python scikit -Ordinary Differential Equation
fig, ax = plt.subplots()
ax.plot(t[:500], y1[:500,0], 'k', label="undamped", linewidth=0.25)
ax.plot(t[:500], y2[:500,0], 'r', label="under damped")
ax.plot(t[:500], y3[:500,0], 'b', label=r"critical damping")
ax.plot(t[:500], y4[:500,0], 'g', label="over damped")
ax.legend();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment