怎么用matplotlib绘制横向的条形图?
import matplotlib.pyplot as plt y = [1, 2, 3, 4] width = [5, 32, 10, 23] ax1 = plt.subplot(1, 1, 1) ax1.barh(y, width) ax1.set_title('Test') plt.show()