diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2019-05-28 08:16:16 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2019-05-28 08:16:16 +0200 |
commit | 7287b75301a53bae723579b145448d43304272af (patch) | |
tree | df6d1a4595f3352a8c90ce9cba0e71ea0269e98b /examples/imageview.py | |
parent | 3e5dcad207c1eadeb74fb53f524c3a94fbe19096 (diff) | |
parent | a763e5d1b3921b3194f3d4e94ab9de3fbe08bbdd (diff) |
Update upstream source from tag 'upstream/0.10.1+dfsg'
Update to upstream version '0.10.1+dfsg'
with Debian dir 6b2d4eeabb68177b2b91df4d7527306d5e19409d
Diffstat (limited to 'examples/imageview.py')
-rwxr-xr-x | examples/imageview.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/imageview.py b/examples/imageview.py index 37d1857..71bde70 100755 --- a/examples/imageview.py +++ b/examples/imageview.py @@ -42,7 +42,7 @@ from __future__ import division __authors__ = ["T. Vincent"] __license__ = "MIT" -__date__ = "18/10/2016" +__date__ = "08/11/2018" import logging from silx.gui.plot.ImageView import ImageViewMainWindow @@ -118,8 +118,7 @@ def main(argv=None): if args.log: # Use log normalization by default colormap = mainWindow.getDefaultColormap() - colormap['normalization'] = 'log' - mainWindow.setColormap(colormap) + colormap.setNormalization(colormap.LOGARITHM) mainWindow.setImage(data, origin=args.origin, |