matplotlibで複数のxlabelsを一度に割り当てたいと思います。 複数のxlabelsを次のように割り当てます。matplotlibで複数のxlabelsを一度に割り当てる方法はありますか?
import matplotlib.pyplot as plt
fig1 = plt.figure()
ax1 = fig1.add_subplot(211)
ax1.set_xlabel("x label")
ax2 = fig1.add_subplot(212)
ax2.set_xlabel("x label")
私はこのように冗長であると感じます。 複数のxlabelsを一度に割り当てる方法はありますか?
(ax1,ax2).set_xlabel("x label")
ありがとうございました! – user6695701