'''
import matplotlib.pyplot as plt
plt.plot([3,1,4,5,2],[5,9,7,5,8])
plt.ylabel('Grade')
plt.savefig('../R&Q_pic/test0',dpi=600)
plt.show
'''
'''
import matplotlib.pyplot as plt
plt.plot([0,2,4,6,8],[3,1,4,5,2])
plt.xlabel('Course')
plt.ylabel('Grade')
plt.axis([-10,10,-6,6])
plt.savefig('../R&Q_pic/test1',dpi=600)
plt.show()
'''
'''
import numpy as np
import matplotlib.pyplot as plt
a=np.arange(10)
plt.plot(a,100/a,'ro-',label='a')
plt.plot(a,50/a,'gx--',label='b')
plt.plot(a,-50/a,'y*',label='c')
plt.plot(a,-100/a,'bs-',label='d')
plt.plot(a,a*2.5/100/a,'mH--',label='e')
plt.savefig('../R&Q_pic/test2',dpi=600)
plt.legend()
plt.show()
'''
'''
import numpy as np
import matplotlib.pyplot as plt
def f(t):
return np.exp(-t)*np.cos(2*np.pi*t)
a=np.arange(0,5,0.02)
plt.subplot(322)
plt.plot(a,f(a))
plt.subplot(323)
plt.plot(a,np.cos(2*np.pi*a),'-.',color='r')
plt.subplot(324)
plt.plot(a,np.sin(2*np.pi*a),'--',color='g')
plt.subplot(325)
plt.plot(a,np.tan(2*np.pi*a),':',color='m')
plt.savefig('../R&Q_pic/test3',dpi=600)
plt.show()
'''
'''
import matplotlib.pyplot as plt
from pylab import mpl
mpl.rcParams['font.sans-serif']=['STZhongsong']
labels=['Frogs','Hogs','Dogs','Logs']
sizes=[15,30,45,10]
explode=(0,0.1,0,0)
plt.pie(sizes,explode,labels,autopct='%1.1f%%',shadow=(True),startangle=90)
plt.axis('equal')
plt.savefig('../R&Q_pic/test4',dpi=600)
plt.show()
'''
'''
import matplotlib.pyplot as plt
fig=plt.figure(figsize=(5,4),dpi=72,facecolor='yellow')
plt.subplot(2,2,1)
plt.plot([0,1],[0,1])
plt.subplot(2,2,2)
plt.plot([1,0],[0,1])
plt.subplot(2,2,3)
plt.plot([1,0],[0,1])
plt.subplot(2,2,4)
plt.plot([0,1],[0,1])
plt.savefig('../R&Q_pic/test5',dpi=600)
plt.show()
'''
'''
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']
labels='教师','辅导员','实训室管理员','行政人员'
sizes=[79,26,10,8]
colors=['yellowgreen','gold','lightskyblue','red']
explode=(0,0.1,0,0.1)
plt.pie(sizes,explode=explode,labels=labels,colors=colors,autopct='%1.1f%%',shadow=True,startangle=90)
plt.axis('equal')
plt.savefig('../R&Q_pic/test6',dpi=600)
plt.show()
'''
'''
import numpy as np
import matplotlib.pyplot as plt
datearr=['2018Y','2019Y','2020Y','2021Y']
num_masks=np.asarray([45.4,50,62.2,77])
plt.bar(datearr,num_masks,width=0.3)
plt.xlabel('2018年--2021年',fontproperties='SimHei',fontsize=10)
plt.ylabel('数量/亿只',fontproperties='SimHei',fontsize=10)
plt.title('2018年-2021年中国大陆地区口罩生产量',fontproperties='SimHei',fontsize=10)
plt.legend()
plt.savefig('../R&Q_pic/test7',dpi=600)
plt.show()
'''
'''
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
fig=plt.figure(figsize=(12,6))
ax=Axes3D(fig)
X,Y=np.mgrid[-3:3:100j,-3:3:100j]
Z=np.exp(-X**2-Y**2)
surf=ax.plot_surface(X,Y,Z,
rstride=1,
cstride=1,
cmap=plt.get_cmap('rainbow'))
ax.set_zlim(-0.1,1)
ax.set_xlabel("X");ax.set_ylabel("Y");ax.set_zlabel("Z")
plt.title("$z=exp(-x^2/2-y^2/2)$的三维图像")
fig.colorbar(surf,shrink=0.5,aspect=5)
plt.savefig('../R&Q_pic/test8',dpi=600)
plt.show()
'''
'''
import numpy as np
import pyecharts.options as opts
from pyecharts.charts import Scatter,Line,Pie,Bar,Grid
import matplotlib.pyplot as plt
num_2020=[26,4,12,23,2,1]
num_2021=[32,6,10,26,3,1]
lab=["维吾尔族","藏族","蒙古族","彝族","水族","哈尼族"]
bar=(
Bar(init_opts=opts.InitOpts(width='720px',height='320px'))
.add_xaxis(xaxis_data=lab)
.add_yaxis(series_name='2020年',y_axis=num_2020,is_show_background=False,
itemstyle_opts=opts.ItemStyleOpts(color="red"))
.add_yaxis(series_name='2021年',y_axis=num_2021,itemstyle_opts=opts.ItemStyleOpts
(color="black"))
.set_global_opts(title_opts=opts.TitleOpts(title='通信与信息工程学院',title_link='http://www.stiei.edu.cn',subtitle='部分少数民族学生数'))
)
bar.render('../R&Q_pic/部分少数民族学生数.html')
'''