Skip to content

Instantly share code, notes, and snippets.

@dhavalpotdar
Last active March 17, 2021 10:30
Show Gist options
  • Save dhavalpotdar/b22663bf2f172c19c05511a75cd704fa to your computer and use it in GitHub Desktop.
Save dhavalpotdar/b22663bf2f172c19c05511a75cd704fa to your computer and use it in GitHub Desktop.
Draw as sine plot in Python.
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 2*np.pi, 2*np.pi/100)
sinx = np.sin(x)
plt.plot(x, sinx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment