ramachandran-lab / pong

Fast analysis and visualization of latent clusters in population genetic data
66 stars 11 forks source link

Rotating population to 90 degree #34

Closed itsmestewart closed 3 months ago

itsmestewart commented 3 months ago

Hello.

Thanks for your truly amazing tool(Pong). I would like to know. How can I rotate the population labels on x axis, let say to 90 degree to avoid population labels from overlapping.

Best regard Stewart

sohinir commented 3 months ago

The rotation angle is currently fixed in pong to 45 degrees, on line 31 in https://github.com/ramachandran-lab/pong/blob/master/static/pong.js. labelRotate = 45. You could alter this and run pong by hand as opposed to installing using pip, if you feel comfortable with altering the code. If not, I would suggest running pong without labels and then adding them yourself using a program like Adobe Illustrator, importing the svg or pdf that pong outputs as a download. Good luck!

itsmestewart commented 3 months ago

Dear Sohinir,

I truely appreciate your response and informative clarfication.

Thank you.