Skip to content

Instantly share code, notes, and snippets.

@mzsima
Created May 28, 2020 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzsima/a09d92f19b296af2318017c3c1ad6ddf to your computer and use it in GitHub Desktop.
Save mzsima/a09d92f19b296af2318017c3c1ad6ddf to your computer and use it in GitHub Desktop.
色環

image

snapshot

code jupyternotebook networkx

import matplotlib.pyplot as plt
import networkx as nx

G = nx.cycle_graph(24)
pos = nx.spring_layout(G, iterations=200)
nx.draw(G, pos, node_color=range(24), node_size=800, cmap=plt.cm.Blues)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment