Created
January 23, 2021 06:49
-
-
Save Park-Developer/759269c8c287e29f0a1303f1c953c28f to your computer and use it in GitHub Desktop.
matplotlib : multi plot
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 numpy as np | |
import matplotlib.pyplot as plt | |
def f(t): | |
return np.exp(-t) * np.cos(2*np.pi*t) | |
def g(t): | |
return np.sin(np.pi*t) | |
t1 = np.arange(0.0, 5.0, 0.01) | |
t2 = np.arange(0.0, 5.0, 0.01) | |
plt.plot(t1, f(t1), 'g-', t2, g(t2), 'r-',) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
한개의 화면에 그래프 여러개 그리고 각기 색깔지정하기