- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 5217 个
- 通用积分
- 7.0196
- 学术水平
- 3 点
- 热心指数
- 4 点
- 信用等级
- 2 点
- 经验
- 19496 点
- 帖子
- 133
- 精华
- 0
- 在线时间
- 320 小时
- 注册时间
- 2018-9-16
- 最后登录
- 2023-3-21
|
请问河流图的坐标轴字体大小怎么调整? - from pyecharts.components import Table
- from pyecharts.options import ComponentTitleOpts
- c_ThemeRiver = (
- ThemeRiver(init_opts=opts.InitOpts(width="1600px", height="880px"))
- .add(
- series_name=x_df,
- data=y_df,
- singleaxis_opts=opts.SingleAxisOpts(pos_top="50", pos_bottom="50", type_='value',min_=1991,max_=2020),
- )
- .set_global_opts(
- tooltip_opts=opts.TooltipOpts(trigger="axis", axis_pointer_type="line",textstyle_opts=opts.TextStyleOpts(font_size=20)),
- title_opts=opts.TitleOpts(title=FileName_global+"-年份*TOP20国家发文趋势河流图", pos_top='top', pos_left = "center",
- title_textstyle_opts=opts.TextStyleOpts(font_size = 35,font_weight='bold')) , #处理标题数据
- legend_opts = opts.LegendOpts( type_ = 'plain',is_show = True ,pos_left = 'center',pos_bottom ='85%',#pos_right = 5,
- item_width=30,item_height=25,item_gap=15,orient='horizontal',
- textstyle_opts=opts.TextStyleOpts(font_size = 30,font_weight='bold')) ,
- )
- .set_series_opts(
- label_opts=opts.LabelOpts(is_show = 0)
- )
- .render("./output/绘图数据/地域分布/绘图/test.html")
- )
复制代码
|
|