일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Pre-training
- joint training of textual and layout information
- OCR
- VrDU
- multilingual
- 딥러닝
- document image understanding
- document understanding
- layoutxml
- 레이블링
- Text Recognition
- layoutlm
- Test set
Archives
- Today
- Total
JM_Research Blog
python matplotlib 여러개 그래프 그리기 본문
문제
- plot을 여러개 그리고 싶은데 한꺼번에 돌리게 되면 plot이 하나만 그려지거나 이상하게 그려지는 경우가 발생
해결
- plt.figure('인자') 를 넣어주면 한꺼번에 돌려도 각각 따로 plot이 그려지게 됨.
plt.figure(1)
plt.plot(epoch, trn_loss1, '-b', label='train_loss')
plt.plot(epoch, trn_loss2, '-r', label='val_loss')
plt.xlabel('Epoch')
plt.legend(loc='upper right')
plt.title('compare_loss')
plt.savefig('경로.png')
plt.figure(2)
plt.plot(epoch, iou1, '-b', label='train-IoU')
plt.plot(epoch, iou2, '-r', label='val-IoU')
plt.xlabel('Epoch')
plt.legend(loc='lower right')
plt.title('compare_iou')
plt.savefig('경로.png')
'파이썬_tip' 카테고리의 다른 글
[크롤링] 스크린샷찍기 (0) | 2019.01.15 |
---|---|
[크롤링] 사전 용어 정리 (0) | 2018.12.15 |
[크롤링] 정규표현식 (0) | 2018.12.14 |
[크롤링] 한글 주소 인코딩_파이썬 (0) | 2018.12.12 |