[graph-tool] Colorbar in graph-tool

Tiago de Paula Peixoto tiago at skewed.de
Wed Feb 8 10:47:12 CET 2017


On 08.02.2017 06:50, Snehal Shekatkar wrote:
> Dear Tiago,
> 
> I am trying to draw a graph in which edges have some property of type float.
> I am coloring the edges using these float values. Now, I want to show a
> colorbar on the side of the graph which would give idea of these values on
> the edges. Is this possible in any way?

You can plot inside a matplotlib figure (see the mplfig parameter to
graph_draw) and then draw a colorbar using matplotlib.

-- 
Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20170208/21c23a99/attachment.asc>


More information about the graph-tool mailing list