Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Python API for drawing diagrams (that use lines to connect corresponding values between two lists) [closed]

Given two lists, which contain same elements of string but in different orders, is there any API that can draw diagrams like enter image description here

The diagram consists of two stacks of string. Between these two stacks, lines are used to link same elements between these two stacks.

Its outlook is similar as the visualization of sonar (an Eclipse code diff. tool), but the semantics of lines are different.

Does this kind of diagram have some formal name?

like image 936
吳強福 Avatar asked Sep 23 '11 11:09

吳強福


1 Answers

The general graph description format DOT seems the most appropriate to me: it is easy to describe a huge variety of graphs, with this (text) format, and you can plot them with one of the many tools available (Graphviz comes to mind, for example).

You also have the specialized python-graph module at your disposal (which can work with the DOT format too).

like image 147
Eric O Lebigot Avatar answered Oct 17 '22 22:10

Eric O Lebigot