documentation एक उदाहरण देता है (पेज नीचे रास्ते से लगभग तीन-चौथाई):
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
fig = plt.figure()
a=fig.add_subplot(1,2,1)
img = mpimg.imread('../_static/stinkbug.png')
lum_img = img[:,:,0]
imgplot = plt.imshow(lum_img)
a.set_title('Before')
plt.colorbar(ticks=[0.1,0.3,0.5,0.7], orientation ='horizontal')
a=fig.add_subplot(1,2,2)
imgplot = plt.imshow(lum_img)
imgplot.set_clim(0.0,0.7)
a.set_title('After')
plt.colorbar(ticks=[0.1,0.3,0.5,0.7], orientation='horizontal')
# ---------------------------------------
# if needed inside the application logic, uncomment to show the images
# plt.show()
असल में, यह एक ही है, जैसा कि आप fig.add_subplot
साथ कुल्हाड़ियों बनाने के साथ सामान्य रूप से करते ...
माफ करना, समझ में नहीं आता "एक आकृति के साथ अलग-अलग सबप्लॉट्स में एक साथ कई छवियों को साजिश करें" क्या आप एसीआई-आर्ट का उपयोग करके कुछ खींच सकते हैं या कुछ और वर्णन कर सकते हैं ... –
@FredrikPihl, मेरा मतलब है कि इसमें कई सबग्राफ के साथ एक आकृति है, प्रत्येक सबग्राफ एक छवि है – Alcott