Last active
March 17, 2021 10:30
-
-
Save dhavalpotdar/b22663bf2f172c19c05511a75cd704fa to your computer and use it in GitHub Desktop.
Draw as sine plot in Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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