python 交互式流程图_使用Python创建漂亮的交互式和弦图

python 交互式流程图

Python中的数据可视化 (Data Visualization in Python)

R vs Python is a constant tussle when it comes to what is the best language, according to data scientists. Though each language has it’s strengths, R, in my opinion has one cutting-edge trick that is hard to beat — R has fantastic tools to communicate results through visualization.

根据数据科学家的说法,R还是Python一直是争论最佳语言的话题。 尽管每种语言都有自己的长处,但我认为R具有一个难以克服的尖端技巧-R具有出色的工具,可以通过可视化传达结果。

This particular point stood out to me this week, when I was trying to find an appealing way to visualize the correlation between features in my data. I stumbled upon CHORD Diagrams!(Which we will get to, in a minute) I had seen a few R examples to generate Chord Diagrams using Circlize where you could just pass the properly shaped data to the chordDiagram() function and ta-da!

本周,当我试图找到一种吸引人的方式来可视化数据中要素之间的相关性时,这一点对我而言尤为突出。 我偶然发现了和弦图表!(我们将拿地,在一分钟内),我已经看到了一些[R例子使用Circlize在那里你可以只在适当形状的数据传递给chordDiagram()函数和当当生成和弦图表!

You should have seen the look on my face when I found the Python Plotly implementation of the Chord Diagram. Even to get a basic figure, one had to put in a lot of effort. The end result simply did not seem worth the effort. I was almost dropping the idea of using a Chord Diagram, when I stumbled upon chord on pypi.

当我发现Chord Diagram的Python Plotly实现时,您应该已经看到了我的表情。 即使要获得一个基本的数字,也必须付出很多努力。 最终结果似乎根本不值得付出努力。 当我偶然发现pypi的和弦时,我几乎放弃了使用和弦图的想法。

好的,和弦图是什么? (Okay, What is a Chord Diagram?)

A Chord Diagram represents the flows between a set of distinct items. These items known as nodes are displayed all around a circle and the flows are shown as connections between the nodes, shown as arcs.

和弦图表示一组不同项目之间的流程。 这些称为节点的项目显示在整个圆周围,并且流程显示为节点之间的连接,显示为圆弧。

If that did not explain it clearly, let’s take a look at an example:

如果那不能清楚地解释它,让我们看一个例子:

Image for post
Image by the Author
图片由作者

The above Chord Diagram, visualizes the number of times two entities(Cities in this case) occur together in the itinerary of a traveler, it allows us to study the flow between them.

上面的弦图,可视化了两个实体(在这种情况下为城市)在一个旅

  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值