Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'circos' style plots with matplotlib? [closed]

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.

like image 296
dimka Avatar asked Feb 27 '12 20:02

dimka


2 Answers

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.

like image 185
Yann Avatar answered Sep 30 '22 20:09

Yann


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 :

  1. learn basic SVG grammar
  2. use python to generate the basic layout
  3. design your image elements
  4. computing and transforming your data coordinates; you'd better think it in polar coordinates (I did the same things but without open source.)
  5. output your elements.

If you like, join circos's google group to discuss: http://groups.google.com/group/circos-data-visualization

like image 25
Gentle Y Avatar answered Sep 30 '22 21:09

Gentle Y