Does anybody know if there's a way to make circos-style plots with matplotlib
python package, or any other python library? They don't have to be as nice looking as the example.
As far as I know, there is no direct functionality for this. If I were to create this functionality, I would use polar plots as the starting point, then I would create a transformation to convert data positions along the circular axis to polar coordinates.
Yann's idea is great.And more, circos is developed by Perl with GD and other modules, and then output SVG (or png). Python can also do this if you want to create new wheel :)
As I know if you wanna circos style images (circular style) by matplotlib, you'd better write raw python code directly :
- learn basic SVG grammar
- use python to generate the basic layout
- design your image elements
- computing and transforming your data coordinates; you'd better think it in polar coordinates (I did the same things but without open source.)
- output your elements.
If you like, join circos's google group to discuss: http://groups.google.com/group/circos-data-visualization
It seems that Biopython's module GenomeDiagram has similar functionality, although it is designed for plotting genomic data, but not any data, as in circos, and the output won't be that nice.
© 2022 - 2024 — McMap. All rights reserved.