-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About the overlapping problem of drawing self-loops #694
Comments
I wrote that bit. Happy to add this option, just didn't think about it at the time. There is a big PR related to plotting in the queue. As soon as that one's send, I can quickly fix this one. |
@iosonofabio This was fixed at some point in the past, but then it broke again, see #321. |
Yep, remember the discussion. |
@ljt10086 I can't find a place in the docs where we allow users to change the angle of loops, what you call @szhorvat I didn't realize #321 is still open. Well a good chance to fix it again. I'll add this on top of #669 which should make it into 0.11. Unfortunately, I don't think I currently have bandwidth to also fix it in 0.10.X |
In this page there is some description of loop.angle in R-igraph:https://igraph.org/r/doc/plot.common.html |
Issue for R interface is at igraph/rigraph#407 |
I agree with @szhorvat that finding the right angles for loops is not something that the user should be dealing with, but I don't know what the best algorithm would be. My idea is something like this:
|
Let's continue this discussion on #669 I've implemented the algo as suggested by both of you and will now add a new documented argument for loop size. There's currently a discussion about arrows in self loops. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
I think this is fixed now (reopen if I'm mistaken). |
As for python-igraph when drawing a self-loop, it does not seem to be able to change the orientation of the self-loop by modifying edge.loop.angle like r version. After reading your code, I find that you use the draw_loop_edge function when drawing the self-loop, and use pi/4 angle, which makes it impossible to modify edge.loop.angle. Eventually, there will be self-loop edges that overlap with other edges when drawing.
The text was updated successfully, but these errors were encountered: