Last active
October 11, 2021 20:51
-
-
Save manuelinfosec/59292c111dcd66fce0eee45abe012379 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 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