zoukankan      html  css  js  c++  java
  • 任务22-2

    import numpy as np
    import matplotlib.pyplot as plt
    import matplotlib
    matplotlib.rcParams['font.family']='SimHei'
    matplotlib.rcParams['font.sans-serif']=['SimHei']
    labels=np.array(['第一周','第二周','第三周','第四周','第五周','第六周'])
    nAttr=6
    Python=np.array([0,91.7,100,96,94.2,70])
    angles=np.linspace(0,2*np.pi,nAttr,endpoint=False)
    Python=np.concatenate((Python,[Python[0]]))
    angles=np.concatenate((angles,[angles[0]]))
    fig=plt.figure(facecolor="white")
    plt.subplot(111,polar=True)
    plt.plot(angles,Python,'bo-',color='g',linewidth=2)
    plt.fill(angles,Python,facecolor='g',alpha=0.2)
    plt.thetagrids(angles*180/np.pi,labels)
    plt.figtext(0.52,0.95,'2019310143023liuchun玲成绩表',ha='center')
    plt.grid(True)
    plt.savefig('dota_radar.JPG')
    plt.show()

  • 相关阅读:
    ajax
    导入操作
    游标的使用
    多行编辑
    IOS开发之--NSPredicate
    asp.net DataTables
    asp.net 汉字转拼音的车祸现场
    Git 连接细节
    Aspose.Words 操作指北
    码云代码管理插件备忘
  • 原文地址:https://www.cnblogs.com/670ling/p/12837048.html
Copyright © 2011-2022 走看看