如果我按照下面的方式绘制单一图形,它将会是大小为 (x * y)。
然而,如果我在同一行中绘制3个子图,每个子图的大小将为((x / 3) * y)。
我该如何获得这3个子图,每个大小为(x * y)?
import matplotlib.pyplot as plt
plt.plot([1, 2], [1, 2])
然而,如果我在同一行中绘制3个子图,每个子图的大小将为((x / 3) * y)。
fig, ax = plt.subplots(1, 3, sharey = True)
for i in range(3):
ax[i].plot([1, 2], [1, 2])
我该如何获得这3个子图,每个大小为(x * y)?