From ef8a70f5eebd102d258ef662348ad7de13fcc57f Mon Sep 17 00:00:00 2001 From: Shane Elipot Date: Wed, 16 Sep 2015 12:33:12 -0400 Subject: [PATCH] Update lansey.m This change is needed otherwise you cannot set the length of the colormap --- jgraph/lansey.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jgraph/lansey.m b/jgraph/lansey.m index b519fa9..17032f0 100644 --- a/jgraph/lansey.m +++ b/jgraph/lansey.m @@ -65,7 +65,7 @@ % 'spectral' setting on http://colorbrewer2.org/ set to 11 colors % It is modified a little to make the brightest yellow a little less bright. function[cmap] = colorm(varargin) -n = 100; +n = varargin{1}; %frac=1; frac=.95; % Slight modification from colorbrewer here to make the yellows in the center just a bit darker cmapp = [158, 1, 66; 213, 62, 79; 244, 109, 67; 253, 174, 97; 254, 224, 139; 255*frac, 255*frac, 191*frac; 230, 245, 152; 171, 221, 164; 102, 194, 165; 50, 136, 189; 94, 79, 162];