首页 > 编程知识 正文

可视化(excel表格下载)

时间:2023-05-03 15:45:59 阅读:72715 作者:4375

实验的主题数据处理:将以下数据数值化及可视化

色味根茎打音好瓜1青绿绉缅浊响(2黑绉绉绸浊响) 3青绿硬挺快脆no (4黑绉绉绉绉绉no )手动或编程数据自动生成脚本自动量化脚本(图、语音实验目的数据量化及可视化方法简述

以及执行结果fromprettytableimportprettytableimportmatplotlib.pyplotaspltimportmatplotlibimportnumpyasnpcolors=[ '青绿色','黑色', ''黑色“黑漆漆”(roots )“蜷”、“蜷”、“硬”、“微圆”) voices )“混浊的声音”、“沉闷”、“清爽”、“沉闷”is roots ) x.add_column )、voices ) x.add_column )、isGood ) prinnning '浅白' :15}rootMap={ '缩头' '微缩' :40}voiceMap={ '浊音' 336020,' no'336070}print ('数字化表, n ' )数字表=预表表(color digital=[ ] root digital=[ ] is good digital=[ ] voicedigital=[ ] forcincolors 330 ) forv invoices 3360 voicedigital.append (voice map [ v ] ) ) ) ) 652 foriinisgood 3360 is good digital.appepe colorDigital (数字表根数字)、voiceDigital (数字表. add _ column )、is goot my font=matplotlib.font _ manager.font properties (fname=r ' c :/windows/fonts/绘制msyh.TTF ' (n=4men means ) 20 ) ind=NP.arange(n ) width=0.35colorbar=PLT.bar ) ind、colorDigital、width width ) rootbar ) PLT.b bottom=color digital (voice bar=PLT.bar (ind,voiceDigital,width, bottom=rootDigital ) isgoodbar=PLT.bar ) ind bottom=voicedigital (PLT.ylabel )、fontproperties=myfont ) PLT.tititital fontproperties=myfont '4' ) ) PLT.y ticks (NP.arange (0,81,10 ) ) PLT.legend (color bar )0),rootbar

-----------------

|色调|根蒂|敲击声|好甜瓜|

-----------------

|青绿|收缩|浊音|是|

|黑漆漆的|蜷缩的|沉闷的|不|

|青绿|硬朗|清脆|no|

|黑漆漆的|有点圆圆的|沉闷的|不|

-----------------

数字化表格如下:

-----------------

|色调|根蒂|敲击声|好甜瓜|

-----------------

| 5 | 20 | 20 | 0 |

| 10 | 20 | 40 | 70 |

| 5 | 30 | 60 | 70 |

| 10 | 40 | 40 | 70 |

-----------------

视觉执行结果如下。

`

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。