Skip to content

Instantly share code, notes, and snippets.

@manuelinfosec
Last active October 11, 2021 20:51
Show Gist options
  • Save manuelinfosec/59292c111dcd66fce0eee45abe012379 to your computer and use it in GitHub Desktop.
Save manuelinfosec/59292c111dcd66fce0eee45abe012379 to your computer and use it in GitHub Desktop.
# import modules
from matplotlib import pyplot as plt
# create new coordinates
x = [5, 10, 20, 30, 40, 50]
y = [20, 10, 5, 3.3, 2.5, 2]
# create and display plot
plt.plot(x,y)
plt.axis([3, 55, 1, 21]) # (3,1) as coordinates for origin
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment