ericmjl / nxviz

Visualization Package for NetworkX
https://ericmjl.github.io/nxviz
MIT License
450 stars 86 forks source link

circos plot with multiple rings #488

Open golharam opened 5 years ago

golharam commented 5 years ago

One of the features of circos plots is the ability to draw multiple ideograms on a plot. None of the examples show this and I'm not clear if this is supported by NetworkX or nxviz. Is this possible?

I basically want to series of chromosomes, then draw another circle within the first that represent subsections of each chromosome.

Before I embark on trying to do this, I was hoping to see an example of this just to find out if its possible.

ericmjl commented 5 years ago

@golharam thanks for pinging in! This functionality isn't yet implemented in nxviz. I think what you're thinking of is multiple information tracks layered outside of the main graph (inner-most ring), is that correct?

I haven't been working on nxviz recently because it's not been relevant to my work, but if you've got some time and would like to take a stab at implementing it, I'm more than happy to guide you through the process. The most important feature of nxviz is a declarative API, so ensuring that the declarative API remains declarative (even for new information tracks) is very important, but it also takes a bit of time to figure out how to do this.