上面的程序主要是能把matplotlib内置在qt框架内显示,这样运行时,直接双击打开exe,不用运行python脚本。cx_Freeze听说是跨平台的,这里没有测试,理论上也可以运行于其他平台,请自行测试。
After this, we use the pandasDataFrame()method to define labels and data coordinates and we use theplot()method to draw a bar chart. By using theset_xticklabels()method we setxlabeland also set itsrotationtohorizontal. Then we use theax.legend()method to set the title of the legend an...