Added example with cubehelix

This commit is contained in:
Vighnesh Birodkar
2014-08-15 21:28:47 +05:30
parent 344e2a51c0
commit 3f7ce2e670
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -27,6 +27,13 @@ out = graph.draw_rag(labels, g, img, node_color="#ffde00", colormap=cmap,
plt.figure()
plt.title("RAG with edge weights less than 30, color "
"mapped between blue and orange.")
plt.imshow(out)
plt.figure()
plt.title("All edges drawn with cubehelix colormap")
cmap = plt.get_cmap('cubehelix')
out = graph.draw_rag(labels, g, img, colormap=cmap,
desaturate=True)
plt.imshow(out)
plt.show()