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

bro's coding

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

[IT]/python.matplotlib

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

givemebro 2020. 4. 3. 00:17
반응형
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))
axes[1,1].imshow(np.random.randn(64,64))

fig.suptitle('Test',fontsize=20)
axes[0,0].set_title('Test1')

 

 

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

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..

broscoding.tistory.com

 

반응형
Comments