Skip to content

Commit 729e87d

Browse files
committed
Bugfix
1 parent 1ddeb09 commit 729e87d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GUI/createImages/shiftCBar_BarInFig.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ function changepointer(hf,~)
7777
elseif y_new<=1.1
7878
x = (y_int:((s+1-y_int)/(s+1)):(s+1))';
7979
else
80-
ym = min((y_int)/(y_new)*ceil(y_new),64);
81-
x = [linspace(1,(y_int)/(y_new)*floor(y_new),floor(y_new)) linspace(ym,64,65-ceil(y_new))]';
80+
ym = min((y_int)/(y_new)*ceil(y_new),s);
81+
x = [linspace(1,(y_int)/(y_new)*floor(y_new),floor(y_new)) linspace(ym,s,(s+1)-ceil(y_new))]';
8282
end
8383
cmap_new = [interp1(ind,cmap(:,1),x) interp1(ind,cmap(:,2),x) interp1(ind,cmap(:,3),x)];
8484
colormap(ha,cmap_new)

0 commit comments

Comments
 (0)