Matplotlib_막대 플롯(Bar plot)
height = [np.random.randn()*i for i in range(1,6)] height names = ['A','B','C','D','E'] y_pos = np.arange(len(names)) y_pos plt.bar(y_pos, height) plt.xticks(y_pos, names, fontweight='bold') plt.xlabel('group') # stacked bar plot 1 bars1 = [12, 28, 1, 8, 22] bars2 = [28, 7, 16, 4, 10] bars3 = [25, 3, 23, 25, 17] r=[0,1,2,3,4] names = ['A','B','C','D','E'] plt.bar(r, bars1, color='royalblue', edg..