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
相关文章
相关标签/搜索