summaryrefslogtreecommitdiff
path: root/examples/scatterMask.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scatterMask.py')
-rw-r--r--examples/scatterMask.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/scatterMask.py b/examples/scatterMask.py
index 45b1bac..7a407ad 100644
--- a/examples/scatterMask.py
+++ b/examples/scatterMask.py
@@ -1,6 +1,6 @@
# coding: utf-8
# /*##########################################################################
-# Copyright (c) 2016-2017 European Synchrotron Radiation Facility
+# Copyright (c) 2016-2018 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -91,7 +91,7 @@ class MaskScatterWidget(qt.QMainWindow):
:param bool copy: True (default) to get a copy of the mask.
If False, the returned array MUST not be modified.
:return: The array of the mask with dimension of the scatter data.
- If there is no scatter data, an empty array is returned.
+ If there is no scatter data, None is returned.
:rtype: 1D numpy.ndarray of uint8
"""
return self._maskToolsWidget.getSelectionMask(copy=copy)
@@ -109,7 +109,7 @@ class MaskScatterWidget(qt.QMainWindow):
self._plot.addImage(image, legend=self._bgImageLegend,
origin=(xscale[0], yscale[0]),
scale=(xscale[1], yscale[1]),
- z=0, replace=False,
+ z=0,
colormap=colormap)
def setScatter(self, x, y, v=None, info=None, colormap=None):