From f6259e87a793b40f5fa6a8e3a63e3015112b6f3b Mon Sep 17 00:00:00 2001 From: Marina Dyachkova <78383617+msdyachkova@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:08:27 +0300 Subject: [PATCH] fix: add track offset for segment separators --- src/pygenomeviz/track/feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pygenomeviz/track/feature.py b/src/pygenomeviz/track/feature.py index cdab579..febf0e5 100644 --- a/src/pygenomeviz/track/feature.py +++ b/src/pygenomeviz/track/feature.py @@ -726,7 +726,7 @@ def _plot_segment_sep(self) -> None: """Plot break symbol for each segment""" if len(self._segment_sep_text_kws_list) == 0: return - pos = 0 + pos = self.offset for idx, space in enumerate(self.spaces): target_pos = pos + self.segments[idx].size + (space / 2) seg_sep_text_kws = self._segment_sep_text_kws_list[idx]