Skip to content

Instantly share code, notes, and snippets.

@manuelinfosec
Last active October 11, 2021 14:11
Show Gist options
  • Save manuelinfosec/6a703b2bcd33fcbe754fbaeb33f59e6a to your computer and use it in GitHub Desktop.
Save manuelinfosec/6a703b2bcd33fcbe754fbaeb33f59e6a to your computer and use it in GitHub Desktop.
# import modules
from matplotlib import pyplot as plt
# create coordinates
x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]
# create and display plot
plt.plot(x,y)
plt.axis([1, 6, 1, 30]) # (1,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