Skip to content

Commit

Permalink
size for chord plot
Browse files Browse the repository at this point in the history
Chord plot size was too small by 1, so chords become more and more offset as one moves around an arc.
  • Loading branch information
drgmk authored Jun 14, 2024
1 parent f1e37f4 commit 3c307f4
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 3c307f4

Please sign in to comment.