Skip to content

Commit

Permalink
Merge pull request #294 from BiAPoL/axes-limit-bugfix
Browse files Browse the repository at this point in the history
Update axes limits when plotting
  • Loading branch information
Cryaaa authored Jan 15, 2024
2 parents db9aea7 + f9a10a8 commit 19cdf25
Showing 1 changed file with 2 additions and 0 deletions.
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 @@ def make_2d_histogram(
)
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())
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 @@ def make_scatter_plot(
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

0 comments on commit 19cdf25

Please sign in to comment.