16
import matplotlib.pyplot as plt
gridnumber = range(1,4)
b1 = plt.bar(gridnumber, [0.2, 0.3, 0.1], width=0.4,
label="Bar 1", align="center")
b2 = plt.bar(gridnumber, [0.3, 0.2, 0.2], color="red", width=0.4,
label="Bar 2", align="center")
plt.ylim([0,0.5])
plt.xlim([0,4])
plt.xticks(gridnumber)
plt.legend()
plt.show()
현재 b1과 b2는 서로 겹칩니다. 어떻게과 같이 개별적으로 플롯을 수행하십시오하기 matplotlib 사이트에 example 있습니다동일한 X 좌표가 나란히 배치 된 막대 그래프를 그리는 방법