Skip to content

Commit

Permalink
restore previous behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Nov 24, 2020
1 parent 7516f80 commit bd0389c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silx/gui/plot/StackView.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,14 +869,14 @@ def setColormap(self, colormap=None, normalization=None,
vmax=vmax,
colors=colors)

if autoscale:
if autoscale is not None:
deprecated_warning(
type_='function',
name='setColormap',
reason='autoscale argument is replaced by a method',
replacement='scaleColormapRangeToStack',
since_version='0.14')
self.__autoscaleCmap = True
self.__autoscaleCmap = bool(autoscale)

cursorColor = cursorColorForColormap(_colormap.getName())
self._plot.setInteractiveMode('zoom', color=cursorColor)
Expand Down

0 comments on commit bd0389c

Please sign in to comment.