开始使用免费开始使用

Visualizing using Circos plots

Circos plots are a rational, non-cluttered way of visualizing graph data, in which nodes are ordered around the circumference in some fashion, and the edges are drawn within the circle that results, giving a beautiful as well as informative visualization about the structure of the network.

In this exercise, you'll continue getting practice with the nxviz API, this time with the circos plot. matplotlib.pyplot has been imported for you as plt.

本练习是课程的一部分

Introduction to Network Analysis in Python

查看课程

练习说明

  • Import circos from nxviz.
  • Plot the Twitter network T as a Circos plot without any styling. Use the circos() function to do this. Don't forget to display it using plt.show().

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Import necessary modules
import matplotlib.pyplot as plt
____

# Create the circos plot: c
c = ____

# Display the plot
____
编辑并运行代码