We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f7281 commit 5a6002dCopy full SHA for 5a6002d
1 file changed
plotpy/tools/image.py
@@ -525,16 +525,14 @@ def activate_cmap(
525
cmap: Cmap to apply for currently selected images. If None, the tool's
526
active colormap will be used. Defaults to None.
527
"""
528
- # action = self.sender()
529
- # if action is not None:
530
assert isinstance(cmap, QAction | str | CustomQwtLinearColormap | None)
531
if isinstance(cmap, QAction):
532
self._active_colormap = cmap.data() # type: ignore
533
elif isinstance(cmap, str):
534
self._active_colormap = get_cmap(cmap)
535
elif isinstance(cmap, CustomQwtLinearColormap):
536
self._active_colormap = cmap
537
-*
+
538
plot = self.get_active_plot()
539
if self._active_colormap is not None and plot is not None:
540
items = self.get_selected_images(plot)
0 commit comments