changeset 33127:2edd93f097ff

image.m: Don't set 'clim' property (bug #65384) * image.m: Delete code that set 'clim' property when 'cdata' was an integer class.
author Rik <rik@octave.org>
date Sat, 02 Mar 2024 14:16:06 -0800
parents 2ff2d201a344
children 7a25ad58d79e
files scripts/image/image.m
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/image.m	Sat Mar 02 14:02:19 2024 -0800
+++ b/scripts/image/image.m	Sat Mar 02 14:16:06 2024 -0800
@@ -186,15 +186,6 @@
       if (isempty (get (hax, "children")))
         axis (hax, "tight");
       endif
-
-      if (ndims (img) == 3)
-        if (isinteger (img))
-          mn = intmin (img);
-          mx = intmax (img);
-          set (hax, "clim", double ([mn, mx]));
-        endif
-      endif
-
     endif  # ! isempty (img)
 
     set (hax, "view", [0, 90], "ydir", "reverse", "layer", "top", "box", "on");