Skip to content

Commit

Permalink
Merge pull request #35 from drgmk/drgmk-patch-1
Browse files Browse the repository at this point in the history
size for chord plot
  • Loading branch information
ponnhide authored Jun 14, 2024
2 parents f1e37f4 + 3c307f4 commit f5ef141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycircos/pycircos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,14 +1112,14 @@ def chord_plot(self, start_list, end_list, facecolor=None, edgecolor=None, linew

start1 = self._garc_dict[garc_id1].coordinates[0]
end1 = self._garc_dict[garc_id1].coordinates[-1]
size1 = self._garc_dict[garc_id1].size - 1
size1 = self._garc_dict[garc_id1].size
sstart = start1 + ((end1-start1) * start_list[1]/size1)
send = start1 + ((end1-start1) * start_list[2]/size1)
stop = start_list[3]

start2 = self._garc_dict[garc_id2].coordinates[0]
end2 = self._garc_dict[garc_id2].coordinates[-1]
size2 = self._garc_dict[garc_id2].size - 1
size2 = self._garc_dict[garc_id2].size
ostart = start2 + ((end2-start2) * end_list[1]/size2)
oend = start2 + ((end2-start2) * end_list[2]/size2)
etop = end_list[3]
Expand Down

0 comments on commit f5ef141

Please sign in to comment.