-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneighborMisOrsPLOTS.m
36 lines (28 loc) · 1.01 KB
/
neighborMisOrsPLOTS.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
minAng = 2;
maxAng = 10;
% Plots
misPhases = fieldnames(misXTAL);
% loop to make plots for each phase separately
for k = 1:length(misPhases)
% specified phase
p = misPhases{k};
% misorientations in crystal coordinates
mX = misXTAL.(p);
% misorientation axes in specimen coordinates
mS = misSPEC.(p);
% plotting condition (which angle ranfe to plot?)
cond = mX.angle<=maxAng*degree&mX.angle>=minAng*degree;
% PLOTS
% crystal coordinates
figure,
plotAxisDistribution(mX(cond),'antipodal','lower','smooth','halfwidth',10*degree,'figSize','small')
cb = mtexColorbar('Title','M.U.D.');
setColorRange([1 max(cb.Limits)]);
saveas(gcf,sprintf('%s_misO_axes_XTAL.png',p));
% specimen coordinates
figure,
plotAxisDistribution(mS(cond),'antipodal','lower','smooth','halfwidth',10*degree,'figSize','small')
cb = mtexColorbar('Title','M.U.D.');
setColorRange([1 max(cb.Limits)]);
saveas(gcf,sprintf('%s_misO_axes_SPEC.png',p));
end