반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

matplotlib.subplot(그래프 여러개 그리기 2) 본문

[IT]/python.matplotlib

matplotlib.subplot(그래프 여러개 그리기 2)

givemebro 2020. 4. 3. 00:27
반응형
import numpy as np
import matplotlib.pyplot as plt

 

 

plt.subplot(2,2,1)
plt.plot([1,2,3,4])

plt.subplot(2,2,2)
plt.scatter(np.random.randn(100),np.random.randn(100))

plt.subplot(2,2,3)
plt.bar(range(10),range(10))

plt.subplot(2,2,4)
plt.imshow(np.random.randn(64,64))

 

 

matplotlib.subplot(그래프 여러개 그리기 1)

axes[0,0].plot([1,2,3,4]) import numpy as np import matplotlib.pyplot as plt axes[0,0].plot([1,2,3,4]) axes[0,1].scatter(np.random.randn(100),np.random.randn(100)) axes[1,0].bar(range(10),range(10..

broscoding.tistory.com

 

반응형
Comments