파이썬 3.6 톰 맥 하기 matplotlib matplotlib.pyplot를 사용하여 2.1.0 matplotlib.pyplot : 저장된 플롯의 부가 적 줄거리를 만들
것은 이제 내가리스트라는 수치에 추가 된 몇 plt.figures()
있다고 가정 해 봅시다 (PLT 등) 개체로. 명령 줄 내가 할 때 : figures[0]
그것은 figures
목록의 색인 0에 대한 음모를 생산하고 있습니다. 그러나 그림에서 모든 플롯을 서브 플롯에 포함 시키려면 어떻게해야합니까?
# Pseudo code:
plt.figure()
for i, fig in enumerate(figures): # figures contains the plots
plt.subplot(2, 2, i+1)
fig # location i+1 of the subplot is filled with the fig plot element
따라서 결과적으로 숫자로 표시된 각 플롯이 포함 된 2x2 격자가됩니다.
희망이 있습니다.