diff --git a/peakviewer/peak_canvas_panel.py b/peakviewer/peak_canvas_panel.py index 00ecfcc..f163135 100644 --- a/peakviewer/peak_canvas_panel.py +++ b/peakviewer/peak_canvas_panel.py @@ -318,7 +318,7 @@ def refresh(self) -> None: self.canvas.draw() - def draw_peak(self, project: Project, peak_idx: int) -> None: + def draw_peak(self, project: Project, retention_times: List[float]) -> None: """ Draw a set of aligned peaks. @@ -329,7 +329,7 @@ def draw_peak(self, project: Project, peak_idx: int) -> None: for ax in self.axes: ax.clear() - draw_peaks(project, peak_idx, self.figure, self.axes) + draw_peaks(project, retention_times, self.figure, self.axes) self.refresh() diff --git a/peakviewer/peak_viewer_frame.py b/peakviewer/peak_viewer_frame.py index 6eef87b..330c0ce 100644 --- a/peakviewer/peak_viewer_frame.py +++ b/peakviewer/peak_viewer_frame.py @@ -230,7 +230,7 @@ def draw_peak(self) -> None: self.toolbar_name_panel.SetLabelText('\n'.join(textwrap.wrap(peak.hits[0].name, width=40))) - self.panel.draw_peak(self.project, peak.meta["peak_number"]) + self.panel.draw_peak(self.project, peak.rt_list) def load_project(self, filename: PathLike) -> None: """ diff --git a/requirements.txt b/requirements.txt index 8312280..e238e66 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ click>=8.1.6 consolekit>=1.5.1 domdf-python-tools>=3.6.1 libgunshotmatch>=0.1.0 -libgunshotmatch-mpl@ git+https://github.com/GunShotMatch/libgunshotmatch-mpl +libgunshotmatch-mpl>=0.6.0b1 matplotlib>=3.7.2 wxpython>=4.0.7; platform_system == "Windows" wxpython>=4.0.7; platform_system == "Darwin"