From d049b937a7db06907414e586301b172e3bfaa296 Mon Sep 17 00:00:00 2001 From: Bogdan Petre Date: Sun, 10 Sep 2023 17:32:57 +0200 Subject: [PATCH] bug fix for 1x4 cmaprange specification --- CanlabCore/@image_vector/render_on_surface.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CanlabCore/@image_vector/render_on_surface.m b/CanlabCore/@image_vector/render_on_surface.m index 32e4dfcd..43eb445b 100644 --- a/CanlabCore/@image_vector/render_on_surface.m +++ b/CanlabCore/@image_vector/render_on_surface.m @@ -170,6 +170,10 @@ % option to match region.montage method clim = varargin{i+1}; varargin{i+1} = []; + if length(clim)==4 + clim = clim([1,end]); + end + case 'nolegend'