Python:用于绘制甘特图的模块
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3695117/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Python: module for plotting Gantt charts
提问by Adam Matan
Is there a good Python module for plotting Gantt Charts? I've tried CairoPlot, but it produces buggy results for complex data sets and lacks many configuration options.
是否有用于绘制甘特图的好的 Python 模块?我试过CairoPlot,但它对复杂的数据集产生了错误的结果并且缺少许多配置选项。
Code samples and images are highly appreciated.
代码示例和图像受到高度赞赏。
Thanks,
谢谢,
Adam
亚当
采纳答案by Ivo van der Wijk
ChartDirector is pretty good at generating advanced charts of all kinds. It has decent python bindings, but it's, unfortunately, not native python or open source in general.
ChartDirector 非常擅长生成各种高级图表。它具有不错的 Python 绑定,但不幸的是,它通常不是原生 Python 或开源。
There are actually some Gantt chart examples/screenshots. The code also includes python demo's for building gantt charts.
实际上有一些甘特图示例/屏幕截图。该代码还包括用于构建甘特图的 python 演示。
If you're working on a web application, you can also consider Google Chart. It appears to be flexible/advanced enough for simple, Gantt-like charts. You can read more on this here, for example. Or just google for "google chart gantt"
如果您正在开发 Web 应用程序,您还可以考虑使用Google Chart。对于简单的类似甘特图的图表,它似乎足够灵活/先进。例如,您可以在此处阅读有关此内容的更多信息。或者只是谷歌搜索“谷歌图表甘特图”
回答by Etienne
回答by abalakin
MathGLcan produce something similar -- see this sample. The same can be done for horizontal bars too.
回答by lwileczek
Plotly has very good gantt charts. check out their documentation and examples in the following link
Plotly 有非常好的甘特图。在以下链接中查看他们的文档和示例
回答by Rajiv Sharma
Checkout Python Gantt
Python-Gantt make possible to easily draw gantt charts from Python. Output format is SVG.
Python-Gantt 使从 Python 轻松绘制甘特图成为可能。输出格式为 SVG。
you can install through pip
你可以通过pip安装
pip install python-gantt


