Created
October 22, 2021 23:27
-
-
Save manuelinfosec/fff850773ea28a386c55cf379ce44f4c to your computer and use it in GitHub Desktop.
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 modules | |
from matplotlib import pyplot as plt | |
from numpy import sin, cos | |
# create coordinates | |
x = [10,20,30,40,50] | |
y = [30,30,30,30,30] | |
# create plots | |
plt.plot(x, y) | |
plt.plot(y, x) | |
plt.plot(x, sin(x)) # (x - sin(x)) | |
plt.plot(x, cos(x)) # (x - cos(x)) | |
# display plots | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment