changeset 24204:547919e6aec1

colormap.m: make named colormaps case insensitive (bug #52358)
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Wed, 08 Nov 2017 15:07:14 +0100
parents 68c4ee9545b2
children b9832e723580
files scripts/image/colormap.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/colormap.m	Tue Nov 07 21:32:58 2017 -0500
+++ b/scripts/image/colormap.m	Wed Nov 08 15:07:14 2017 +0100
@@ -99,7 +99,7 @@
   endif
 
   if (nargin == 1)
-    map = varargin{1};
+    map = tolower (varargin{1});
     if (ischar (map))
       if (strcmp (map, "default"))
         map = viridis (64);