Skip to content

Commit

Permalink
Fixed colormap
Browse files Browse the repository at this point in the history
  • Loading branch information
wqseis committed Mar 31, 2023
1 parent f0b87b6 commit 2f30b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/colormap/whitejet.m
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
6 0 0;
0 0 0;
];
c = [repmat(c(1,:),2,1);c;repmat(c(1,:),1,1)];
c = [repmat(c(1,:),2,1);c;repmat(c(end,:),1,1)];
%... Interpolate get requested size for color table
pp=1:(m-1)/(size(c,1)-1):m;
r=interp1(pp,c(:,1),1:m);
Expand Down

0 comments on commit 2f30b3c

Please sign in to comment.