Change colourmap after drawing heirarchical SBM
Hi there,
I'm using Graph-tool on Windows 10 via Docker. It works great, but I can't change the colourmap for SBMs (inline or not). Can you help please?
For reference this is an example of what I might call from Jupiter:
cmap = mpl.cm.magma; state.draw(edge_color=gt.prop_to_size(g.edge_properties["EdgeName"], 0, 10, power=0.5, log=False), ecmap=(cmap, .4), vertex_text=g.vertex_properties["StateName"], vertex_size=10, vertex_font_size=10, eorder=g.edge_properties["EdgeName"], edge_pen_width=gt.prop_to_size(g.edge_properties["EdgeName"], 0, 10, power=0.5,log=False), vertex_text_position="centered",inline=True)
I can still control transparency but changing the ecmap doesn't seen to have an effect - the colours stay the default colours. And changing ecmap in other functions such as 'graph_draw' seems to work.
Thanks for you help in advance, Ash