Skip to content

Instantly share code, notes, and snippets.

@manuelinfosec
Created October 22, 2021 23:27
Show Gist options
  • Save manuelinfosec/fff850773ea28a386c55cf379ce44f4c to your computer and use it in GitHub Desktop.
Save manuelinfosec/fff850773ea28a386c55cf379ce44f4c to your computer and use it in GitHub Desktop.
# 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