DEV Community

Cover image for Circular visualization in Python (Circos Plot, Chord Diagram)
moshi
moshi

Posted on

Circular visualization in Python (Circos Plot, Chord Diagram)

Circular data visualization is often used to visualize interrelationships such as networks and flows between data. The following diagram is called a Chord Diagram, which can visualize the interrelationships of data in a simple and beautiful way.

Chord Diagram Example

In the bioinformatics field, Circos, a circular data visualization tool (Perl module) is widely used to visualize genome information and gene networks, and we often see circular visualizations of numerical values, statistics, and interrelationships of various data.

Circos Plot Example

In R language, circlize is a well-known circular visualization package that is used by many users. Circlize provides many high-level and low-level APIs for circular visualization, and users can write code for circular visualization in a flexible way.
On the other hand, there is still no circular visualization package in Python that is as feature-rich and widely used by users as circlize. Therefore, I developed pyCirclize for the purpose of making circlize-like visualization available in Python.

pyCirclize (GitHub / Document) enables easy and flexible execution of circular data visualizations such as Chord Diagram and Circos from the Python API. As an example, user can perform the following circular data visualization.

Circos Plot Example

Top comments (0)