import numpy as np
import matplotlib.pyplot as plt
# 折線圖方面
x = np.array(['Mon','Tue','Wed','Thu','Fri','Sat','Sun'])
y = np.array([820,932,901,934,1290,1330,1320])
plt.plot(x,y,'r',lw=2)
# 柱狀圖方面
x = np.array(['Mon','Tue','Wed','Thu','Fri','Sat','Sun'])
y = np.array([820,932,901,934,1290,1330,1320])
plt.bar(x,y,0.2,alpha=0.5,color='r')
plt.show()