
这张图叫做南丁格玫瑰图,既美观又准确清晰的显示出确诊的数据。
那么如何使用Python绘制玫瑰图呢?我们使用PyEcharts v1.x版本进行绘制玫瑰图。
1、导入需要使用的模块:
import pandas
from pyecharts import options as opts
from pyecharts.charts import Pie
2、导入数据:
data = pandas.read_excel(
'G:/PythonWorkSpace/MatplotlibNumpyPandas/rose.xlsx'