使用(python,perl)(linux)在excel中创建图表

2024-05-03 17:36:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要从Excel表中的数据生成图表/图形到Excel工作表。我在linux环境中使用python。我已经看了下面的问题,但没有找到任何答案。我正在linux环境中使用Python2.7。如果我们有任何解决方案,我也可以灵活地使用perl。在

use python to generate graph in excel

How to generate Excel spreadsheets with embedded graphs?

(尝试使用openpyxl:Graphs in xlsx File overwrite by openpyxl


Tags: to数据答案in图形环境uselinux
3条回答

从你的另一个问题。。。在

Here是关于如何在openpyxl中创建图表的文档

这个例子有点破绽,与此相比。在

values = Reference(ws, (1, 1), (1, 95))
series = Series(values, title="Sample" )
chart = LineChart()
chart.append(series)
ws.add_chart(chart)  

我发现下面的网址可能有用。在

https://metacpan.org/pod/Spreadsheet::WriteExcel::Chart#NAME

Python模块XlsxWritersupports charts。在

相关问题 更多 >