from pyecharts.charts import Pie from pyecharts import options as opts %matplotlib inlineL1 = ['教授','副教授','讲师','助教','其他'] num = [20,30,10,12,8] c = Pie() c.add("",[list(z) for z in zip(L1,num)]) c.set_global_opts(title_opts=opts.TitleOpts(title='Pie-职称类别比
时间: 2023-12-27 13:02:48 浏览: 84
WPFVisifire.Charts全部实例
例图'),legend_opts=opts.LegendOpts(orient='vertical',pos_top='15%',pos_left='2%')) c.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}:{d}%")) c.render_notebook() 这段代码的作用是什么?
阅读全文