From 5c5b60df4cde95d1115c8c303ca9f48fe708f169 Mon Sep 17 00:00:00 2001 From: Vighnesh Birodkar Date: Fri, 15 Aug 2014 02:32:23 +0530 Subject: [PATCH] Chnaged palette in example --- doc/examples/plot_rag_draw.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/examples/plot_rag_draw.py b/doc/examples/plot_rag_draw.py index 9c9d68b0..bb8042d8 100644 --- a/doc/examples/plot_rag_draw.py +++ b/doc/examples/plot_rag_draw.py @@ -19,8 +19,11 @@ plt.figure() 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) +# The color palette used was taken from +# http://www.colorcombos.com/color-schemes/2/ColorCombo2.html +cmap = colors.ListedColormap(['#6599FF', '#ff9900']) +out = graph.draw_rag(labels, g, img, node_color="#ffde00", colormap=cmap, + thresh=30, desaturate=True) plt.figure() plt.title("RAG with edge weights less than 30, color " "mapped between green and red.")