This commit is contained in:
Vighnesh Birodkar
2014-08-14 01:24:02 +05:30
parent bcbfdb28f5
commit 3553809c55
+1 -1
View File
@@ -20,7 +20,7 @@ plt.title("RAG with all edges shown in green.")
plt.imshow(out)
cmap = colors.ListedColormap(['#00ff00', '#ff0000'])
out = graph.draw_rag(labels, g, img,colormap=cmap, thresh=30, desaturate=True)
out = graph.draw_rag(labels, g, img, colormap=cmap, thresh=30, desaturate=True)
plt.figure()
plt.title("RAG with edge weights less than 30, color "
"mapped between green and red.")