天宫鹤

2024年4月9日

Python使用xlwings库为图表设置标题的正确用法

摘要: chart.api[1].SetElement(2) # 显示标题,该语句不能少!!!不能用api[0]# 或者使用以下语句 # chart.api[1].HasTitle = True chart.api[1].ChartTitle.Text = '工作表图表标题文本’ # 说明: # chart 阅读全文

posted @ 2024-04-09 17:27 GoGrid 阅读(33) 评论(0) 推荐(0) 编辑

导航