Skip to content
Snippets Groups Projects
Commit 240dd8c2 authored by Peter Reischig's avatar Peter Reischig Committed by Nicola Vigano
Browse files

Modified layout for better display.

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@571 4c865b51-4357-4376-afb4-474e03ccb993
parent 30d4235b
No related branches found
No related tags found
No related merge requests found
...@@ -13,11 +13,17 @@ function gtShowFsim(grain, phaseid, clims) ...@@ -13,11 +13,17 @@ function gtShowFsim(grain, phaseid, clims)
clims = 0; clims = 0;
end end
leg = { 'flag = 1 : No intensity in raw images', ... %leg = { 'flag = 1 : No intensity in raw images', ...
'flag = 2 : Found some intensity in raw images', ... % 'flag = 2 : Found some intensity in raw images', ...
'flag = 3 : Found segmented intensity - not matching search criteria', ... % 'flag = 3 : Found segmented intensity - not matching search criteria', ...
'flag = 4 : Found difspot matching search criteria', ... % 'flag = 4 : Found difspot matching search criteria', ...
'flag = 5 : Difspot (pair) identified by indexter' }; % 'flag = 5 : Difspot (pair) identified by indexter' };
leg = { '1: No intensity in raw images', ...
'2: Intensity in raw images', ...
sprintf('3: Segmented intensity not\n matching search criteria'), ...
'4: Difspot matching search criteria', ...
'5: Indexed difspot as Friedel pair' };
clims = gtSetColourLimits(grain.full, clims); clims = gtSetColourLimits(grain.full, clims);
...@@ -27,12 +33,14 @@ function gtShowFsim(grain, phaseid, clims) ...@@ -27,12 +33,14 @@ function gtShowFsim(grain, phaseid, clims)
phaseid = grain.phaseid; phaseid = grain.phaseid;
f = figure(); f = figure('Units','normalized','Position',[0 0 0.8 1]);
%set(f,);
ax = axes('Parent', f); ax = axes('Parent', f);
axis(ax, 'equal');
colormap(ax, gray); colormap(ax, gray);
imagesc(grain.full, 'Parent', ax, clims); imagesc(grain.full, 'Parent', ax, clims);
axis(ax, 'equal');
axis(ax, [1 size(grain.full,2) 1 size(grain.full,1)])
gtBrightnessContrast(ax); gtBrightnessContrast(ax);
hold(ax, 'on'); hold(ax, 'on');
...@@ -96,5 +104,23 @@ function gtShowFsim(grain, phaseid, clims) ...@@ -96,5 +104,23 @@ function gtShowFsim(grain, phaseid, clims)
leg = 'expected spot positions'; leg = 'expected spot positions';
end end
legend(h, leg, 'Location', 'NorthOutside') %legend(h, leg, 'Location', 'NorthOutside')
hl = legend(h, leg, 'Location', 'EastOutside');
% Position figure, axes and legend
set(f,'Units','normalized')
set(f,'Position',[0 0 0.8 1])
set(hl,'Units','normalized')
pos = get(hl,'Position');
set(hl,'Position',[0.99-pos(3) pos(2) pos(3) pos(4)])
set(ax,'Units','normalized')
pos = get(ax,'Position');
set(ax,'Position',[pos(1) 0.05 pos(3) 0.9])
set(f,'Units','normalized')
set(f,'Position',[0 0 0.8 1])
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment