figsize: 그래프 사이즈 설정
2023. 3. 27. 12:05ㆍOpenCV/Kaggle - Learning OpenCV for Example
figure(figsize=(가로길이, 세로길이))
단위 : inch
예시
import matplotlib.pyplot as plt
import cv2
import numpy as np
image = cv2.imread("DOG.jfif")
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
plt.figure(figsize=(20,20))
plt.subplot(1,2,1)
plt.title("DOG")
plt.imshow(image)가로, 세로 길이 20인치로 결과가 출력된다.

'OpenCV > Kaggle - Learning OpenCV for Example' 카테고리의 다른 글
| cv2.filter2D(): 기본적인 2D 필터링 (0) | 2023.03.27 |
|---|---|
| subplot(): 여러개의 그래프 그리기 (0) | 2023.03.27 |