下面的範例顯示如何用barh() 繪製長條圖。 from matplotlib import cm. cmap = cm.jet(np.linspace(0, 1, len(students))). plt.barh(x, math_scores, color=cmap).
確定! 回上一頁