Skip to content

Fix the problem of the self-node visualization problem#453

Open
shengqh wants to merge 2 commits into
jinworks:mainfrom
shengqh:main
Open

Fix the problem of the self-node visualization problem#453
shengqh wants to merge 2 commits into
jinworks:mainfrom
shengqh:main

Conversation

@shengqh

@shengqh shengqh commented Mar 24, 2026

Copy link
Copy Markdown

the loops in the same node in circle plot have wrong direction.

image

adding "* -1" to the loop.angle assignment fix the problem.

Line 1336 and 1739:
loop.angle<-ifelse(coords_scale[igraph::V(g),1]>0,-atan(coords_scale[igraph::V(g),2]/coords_scale[igraph::V(g),1]),pi-atan(coords_scale[igraph::V(g),2]/coords_scale[igraph::V(g),1])) * -1

HGPS circle_weight

@Ye1203

Ye1203 commented Jun 30, 2026

Copy link
Copy Markdown

Thank you for this fix! I encountered the same issue. After applying this change, the self-loop directions in the circle layout are rendered correctly. It works very well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants