Last active
October 11, 2021 14:11
-
-
Save manuelinfosec/6a703b2bcd33fcbe754fbaeb33f59e6a 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 | |
# 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