Skip to content

Update pycircos.py #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pycircos/pycircos.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __setitem__(self, key, item):
def __getitem__(self, key):
return self.__dict__[key]

def __init__(self, arc_id=None, record=None, size=1000, interspace=3, raxis_range=(500, 550), facecolor=None, edgecolor="#303030", linewidth=0.75, label=None, labelposition=0, labelsize=10, label_visible=False):
def __init__(self, arc_id=None, record=None, size=1000, interspace=3, raxis_range=(500, 550), facecolor=None, edgecolor="#303030", linewidth=0.75, label=None, labelposition=0, labelsize=10, label_visible=False, labelcolor="#000000"):
"""
Parameters
----------
Expand Down Expand Up @@ -147,6 +147,7 @@ def __init__(self, arc_id=None, record=None, size=1000, interspace=3, raxis_rang
self.facecolor = facecolor
self.edgecolor = edgecolor
self.linewidth = linewidth
self.labelcolor = labelcolor

if label is None:
self.label = arc_id
Expand Down Expand Up @@ -432,7 +433,7 @@ def set_garcs(self, start=0, end=360):
else:
rot = -1 * rot
height = bottom + height/2 + self._garc_dict[key].labelposition
self.ax.text(pos + width/2, height, self._garc_dict[key].label, rotation=rot, ha="center", va="center", fontsize=self._garc_dict[key].labelsize)
self.ax.text(pos + width/2, height, self._garc_dict[key].label, rotation=rot, ha="center", va="center", fontsize=self._garc_dict[key].labelsize, color=self._garc_dict[key].labelcolor)

def setspine(self, garc_id, raxis_range=(550, 600), facecolor="#30303000", edgecolor="#303030", linewidth=0.75):
"""
Expand Down