Skip to content

Commit

Permalink
Override autoscale_None to avoid non-deterministic behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Nov 30, 2016
1 parent 41c096c commit c553179
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions glue/viewers/image/ds9norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ def stretch(self, value):
(value, warpers.keys()))
self._stretch = value

def autoscale_None(self, *args, **kwargs):
# We have to override the Matplotlib autoscale_None method to make sure
# that the limits don't get changed non-deterministically.
pass

def update_clip(self, image):
if self.clip_lo is None or self.clip_hi is None:
return
Expand Down

0 comments on commit c553179

Please sign in to comment.