fig = plt.figure()
ax1 = fig.add_subplot(2, 1, 1)
x, h, w = 2, 7, 1
ax1.bar(x, h, w)
ax1.set_xlim(0, 10)
ax2 = fig.add_subplot(2, 1, 2)
y, w, h = 2, 7, 1
ax2.barh(y, w, h, color='red')
ax2.set_ylim(0, 10)
fig.tight_layout()
fig.show()

0e654063c8e17e034a9b280216d5f29d8a715b67
<mask token>

<mask token>
ax1.bar(x, h, w)
ax1.set_xlim(0, 10)
<mask token>
ax2.barh(y, w, h, color='red')
ax2.set_ylim(0, 10)
fig.tight_layout()
fig.show()

fig = plt.figure()
ax1 = fig.add_subplot(2, 1, 1)
x, h, w = 2, 7, 1
ax1.bar(x, h, w)
ax1.set_xlim(0, 10)
ax2 = fig.add_subplot(2, 1, 2)
y, w, h = 2, 7, 1
ax2.barh(y, w, h, color='red')
ax2.set_ylim(0, 10)
fig.tight_layout()
fig.show()
