平时作业
Signed-off-by: 吴沂钊 <13190667+Yizhao_Wu4926@user.noreply.gitee.com>
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
import numpy as np
|
||||
data=np.load('国民经济核算季度数据.npz',allow_pickle=True) //调用时出错了,按照老师的提示添加一个参数
|
||||
data.files
|
||||
name=data['columns']
|
||||
values=data['values']
|
||||
name
|
||||
values
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
plt.scatter(range(69),data['values'][:,2])
|
||||
plt.show()
|
||||
plt.plot(range(69),data['values'][:,2])
|
||||
plt.show()
|
||||
l=['r','g','b']
|
||||
m=['o','*','D']
|
||||
for j,i in enumerate([3,4,5]):
|
||||
plt.plot(range(69),data['values'][:,i],c=l[j],marker=m[j],alpha=0.5)
|
||||
plt.legend(['1','2','3'])
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user