Skip to content

Commit

Permalink
colormaps for residuals more consistent between figures
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard-giroux committed Apr 7, 2016
1 parent 629424c commit 5360366
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bh_tomo/bh_tomo_inv.m
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ function ResidusMenuItem_Callback(hObject, eventdata, handles)
end
end

p = [1 0 0;1 1 1;0 0 1];
p = [0 0 1;1 1 1;1 0 0];
p = interp1((-1:1)',p,(-1:0.02:1)');

z=imdata;
Expand Down
7 changes: 5 additions & 2 deletions bh_tomo/plotRais2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@

rmin = min(res);
rmax = max(res);
c=jet;%cmr;
%c=jet;

c = [0 0 1;0.8 0.8 0.8;1 0 0];
c = interp1((-1:1)',c,(-1:0.02:1)');

m = (size(c,1)-1)/(rmax-rmin);
b = 1-rmin*m;
Expand All @@ -54,7 +57,7 @@
end
hold(ha,'off')
set(ha, 'DataAspectRatio',[1 1 1])
colormap(jet)
colormap(c)%jet)
hb=colorbar(ha);
caxis(ha,[rmin rmax])
set(get(hb,'Title'),'String','Residuals')
Expand Down

0 comments on commit 5360366

Please sign in to comment.