matplotlib之條形圖

import matplotlib.pyplot as plt import numpy as np N = 5 y = [20, 30, 10, 25, 15] index = np.arange(N) plt.bar(left=index, height=y) plt.show() 調整顏色與寬度python plt.bar(left=index, height=y, color='red
相關文章
相關標籤/搜索