python-igraph
python-igraph copied to clipboard
edge_label with matplotlib
Is there a feature to display edge attributes with Matplotlib as with Cairo.
With Cairo
g.es["label"] = g.es["weight"]
works perfectly however,
adding this line below in visual_style never worked.
visual_style = {
"edge_label": g.es["weight"],
}
I tested the code from tutorial's gallery for shortest path and this is what I got

vs on tutorial's result

Any idea what might be wrong?
I run the test on Windows 11 Home and I tested on MacOSX as well with no luck
Could you please try the develop branch of python-igraph?
I'll try it out over this week and update you
I just tried the compiling from develop branch and it seems to work well.
Could we have it on PyPI release as well?
We redesigned the whole plotting interface in develop so it's not easy to do that. Version 0.10 of the C core is out as pre-release and will be released ASAP, after that python-igraph 0.10 will follow in a matter of days (I hope).
Yes, that's the plan. If things go according to plan, igraph 0.10 will be released as soon as I get back from holidays in September, and the Python interface will follow in a day or two.
Alright, thank you all. We'll be waiting then.