Skip to content

Instantly share code, notes, and snippets.

@Park-Developer
Created January 23, 2021 06:49
Show Gist options
  • Select an option

  • Save Park-Developer/759269c8c287e29f0a1303f1c953c28f to your computer and use it in GitHub Desktop.

Select an option

Save Park-Developer/759269c8c287e29f0a1303f1c953c28f to your computer and use it in GitHub Desktop.
matplotlib : multi plot
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()
@Park-Developer
Copy link
Copy Markdown
Author

한개의 화면에 그래프 여러개 그리고 각기 색깔지정하기

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment