Created
November 15, 2017 14:51
-
-
Save erikaris/fdbff3a8698a2fa7dfa4b4b95a838a9d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 numpy as np | |
a = np.array([1,2,3,5,8,13,21,34]) | |
b = np.array([1, 4, 9, 16, 25, 36, 49, 64]) | |
c = np.linspace(0, 40, 8) | |
d = np.sin(c) | |
plt.figure() | |
plt.plot(a) | |
plt.plot(a, 'go') # 1 | |
plt.plot(a, '-') # 2 | |
plt.plot(a, 'r-o') # 3 | |
plt.plot(a,'r-o', b, 'b-*') # 4 | |
plt.plot(a, b) # 5 | |
plt.plot(a, b, 'rv') # 6 | |
plt.plot(a, 'c^', b, 'm<') # 7 | |
plt.plot(a, b, 'y>', c, d, 'b1') # 8 | |
plt.plot(a, b, 'g-2', c, c**2, 'r-3', b, d**2, 'c-3') # 9 --> produces the same output as the line 19-21 altogether. | |
plt.plot(a, b, 'g-2') # 10 | |
plt.plot(c, c**2, 'r-3') # 11 | |
plt.plot(b, d**2, 'c-3') # 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment