এটা করতে বিভিন্ন উপায় আছে। subplots
পদ্ধতি subplots যে তারপর সংরক্ষিত হয় বরাবর চিত্রে সৃষ্টি ax
অ্যারে। উদাহরণ স্বরূপ:
import matplotlib.pyplot as plt
x = range(10)
y = range(10)
fig, ax = plt.subplots(nrows=2, ncols=2)
for row in ax:
for col in row:
col.plot(x, y)
plt.show()

যাইহোক, এর মতো কিছু কাজ করবে, এটি এত "পরিষ্কার" নয় যদিও আপনি সাবপ্লট দিয়ে একটি চিত্র তৈরি করছেন এবং তারপরে তার উপরে যুক্ত করুন:
fig = plt.figure()
plt.subplot(2, 2, 1)
plt.plot(x, y)
plt.subplot(2, 2, 2)
plt.plot(x, y)
plt.subplot(2, 2, 3)
plt.plot(x, y)
plt.subplot(2, 2, 4)
plt.plot(x, y)
plt.show()
