简体   繁体   中英

Is there a way to alter the edge opacity in Python igraph?

我知道您可以在绘图函数中调整图形的整体不透明度(opacity = (0 to 1)),但我在手册或在线搜索中找不到任何关于改变边缘不透明度(或透明度)的内容?

Edge opacity can be altered with the color attribute of the edge or with the edge_color keyword argument of plot() . The colors that you specify there are passed through the color_name_to_rgba function so you can use anything that color_name_to_rgba understands there; the easiest is probably an (R, G, B, A) tuple or the standard HTML #rrggbbaa syntax, where A is the opacity. Unfortunately this is not documented well but I'll fix it in the next release.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM