netplot icon indicating copy to clipboard operation
netplot copied to clipboard

enable \n in vertex labels

Open mjrmason opened this issue 3 years ago • 1 comments

Fantastic Package! Vertex labels with new lines are enabled in igraph plotting but not in this package. It would increase my use greatly if I could include new lines in my vertex labels like "Com 12\nMemmory T cells". Maybe a bug, maybe a enhancement... not sure.

mjrmason avatar Jul 22 '22 22:07 mjrmason

Thank you, @mjrmason! That sounds like a great idea. I'll add it to the to-do list. That said, PRs are more than welcome :).

gvegayon avatar Jul 22 '22 22:07 gvegayon

Ultimately, the functionality was always there. The issue is the fontfamily. Hershey's fonts, for some reason, don't like line breaks. Changing vertex.label.fontfamily to sans does the trick. I'm closing this now.

gvegayon avatar Jun 27 '24 22:06 gvegayon