使用barh方法繪製條形圖。例如:. import matplotlib.pyplot as plt data = [5, 20, 15, 25, 10] plt.barh(range(len(data)), data) plt.show().
確定! 回上一頁