반응형
# Vertical
fig, axs = plt.subplots(2)
fig.suptitle('Vertically stacked subplots')
axs[0].plot(x, y)
axs[1].plot(x, -y)
# Horizontal
fig, (ax1, ax2) = plt.subplots(2)
fig.suptitle('Vertically stacked subplots')
ax1.plot(x, y)
ax2.plot(x, -y)
'Python' 카테고리의 다른 글
Change working directory to current location (0) | 2023.05.18 |
---|---|
nuScenes 데이터셋의 이해 (0) | 2023.05.12 |
ImportError: cannot import name '_NewEmptyTensorOp' from 'torchvision.ops.misc' (0) | 2023.05.03 |
Resize and crop images in a specific directory (0) | 2023.04.25 |
Fast JPEG image loading by TurboJPEG (0) | 2023.04.25 |