Skip to content
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

Update axes limits when plotting #294

Merged
merged 2 commits into from
Jan 15, 2024
Merged
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
2 changes: 2 additions & 0 deletions napari_clusters_plotter/_Qt_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@
)
self.axes.set_xlim(xedges[0], xedges[-1])
self.axes.set_ylim(yedges[0], yedges[-1])
self.xylim = (self.axes.get_xlim(), self.axes.get_ylim())

Check warning on line 620 in napari_clusters_plotter/_Qt_code.py

View check run for this annotation

Codecov / codecov/patch

napari_clusters_plotter/_Qt_code.py#L620

Added line #L620 was not covered by tests
self.histogram = (h, xedges, yedges)
self.selector.disconnect()
self.selector = SelectFrom2DHistogram(self, self.axes, self.full_data)
Expand Down Expand Up @@ -674,6 +675,7 @@
self.axes,
self.pts,
)
self.xylim = (self.axes.get_xlim(), self.axes.get_ylim())

def match_napari_layout(self):
"""Change background and axes colors to match napari layout"""
Expand Down
Loading