简体   繁体   English

如何使用 Brightway2 生成桑基图?

[英]How to generate Sankey diagrams using Brightway2?

I know that we can get Sankey diagrams using activity-browser.我知道我们可以使用活动浏览器获取 Sankey 图。 Is there a way we can generate a sankey diagram for one of the ecoinvent activities using brightway2 functions and python?有没有一种方法可以使用 brightway2 函数和 python 为其中一项 ecoinvent 活动生成桑基图?

I looked into brightway2 functions but couldn't find one that I can readily use for sankey diagrams.我查看了 brightway2 函数,但找不到可以轻松用于 sankey 图的函数。

Unfortunately not, at least right now.不幸的是,至少现在没有。 The activity-browser implementation is licensed LGPL , which isn't compatible with the Brightway license, so we can't just copy what they have done. 活动浏览器的实现已获得LGPL许可,与 Brightway 许可不兼容,因此我们不能只是复制他们所做的。 There are also technical limitations, as an interactive graphic would need a server/client architecture for new calculations (eg changing the cutoff), or serializing a very large result dataset for use in something like plotly.还有技术限制,因为交互式图形需要服务器/客户端架构来进行新的计算(例如更改截止值),或者序列化非常大的结果数据集以用于 plotly 之类的东西。

It would be amazing to have the community step up with a stand-along program;让社区加强独立计划将是一件令人惊奇的事情; see also the ongoing visualization contest .另请参阅正在进行的可视化竞赛

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM