You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to plot a circos diagram (like the one here) using pycircos.
I tried to do the first arc following the tutorials. I am trying to understand how to add text in each arc.
Code:
import pandas as pd
import pycircos
import matplotlib.pyplot as plt
Garc = pycircos.Garc
Gcircle = pycircos.Gcircle
d = {
'A': ['study1', 'study2', 'study3'],
'B': ['study1', 'study4', 'study5'],
'C': ['study1', 'study2']
}
circle = Gcircle(figsize=(8, 8))
# add keys
for name in d.keys():
print(name)
arc = Garc(arc_id=name, interspace=0, raxis_range=(935, 985), labelposition=80, label_visible=True)
circle.add_garc(arc)
circle.set_garcs(-65, 245)
for arc_id in circle.garc_dict:
circle.tickplot(arc_id, raxis_range=(985, 1000), tickinterval=20000000, ticklabels=None)
circle.figure
circle.figure.savefig("test.png")
Plot:
I would like to add text (i.e. values stored in d, the keys are the arcs) to each arc in the next level circle or inside each arc in the current circle. Example figure is available here.
Suggestions on how to do this will be of great help.
Thanks a lot for the wonderful library!
The text was updated successfully, but these errors were encountered:
Hello @ponnhide,
I'm trying to plot a circos diagram (like the one here) using
pycircos
.I tried to do the first arc following the tutorials. I am trying to understand how to add text in each arc.
Code:
Plot:
I would like to add text (i.e. values stored in
d
, the keys are the arcs) to each arc in the next level circle or inside each arc in the current circle. Example figure is available here.Suggestions on how to do this will be of great help.
Thanks a lot for the wonderful library!
The text was updated successfully, but these errors were encountered: