python用matplotlib画条形图初探(单变量,双变量堆叠)
python用matplotlib画条形图初探(单变量,双变量堆叠)一、包import numpy as npimport matplotlib.pyplot as plt二、单变量(垂直)y = [5, 10, 15, 20, 25]index = np.arange(len(y))plt.bar(left=index, height=y, color='r', width=0.5) #...