Skip to content

Commit

Permalink
Sync initial limits
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed May 25, 2021
1 parent 8e33c5f commit 77c2340
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jdaviz/configs/imviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def activate(self):
break
viewer.state.reference_data = self.viewer.state.reference_data

# Trigger a sync so the initial limits match
self.on_limits_change()

def deactivate(self):

self.viewer.state.remove_callback('x_min', self.on_limits_change)
Expand Down

0 comments on commit 77c2340

Please sign in to comment.