Skip to content
Snippets Groups Projects
Commit 79deb24f authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Added IPF normal in phase figure creation

parent a917ba8d
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ function gt6DMakePhaseFigureForPaper( phase_mat, phase_id, varargin )
%
conf = struct( ...
'ipf_plane_normal', [], ...
'use_dmvol', true, ...
'abs_vol', [], ...
'abs_mask', [], ...
......@@ -37,7 +38,7 @@ function gt6DMakePhaseFigureForPaper( phase_mat, phase_id, varargin )
r_vecs = reshape(slice_rod, [], 3);
r_vecs = r_vecs(indx, :);
cmap = get_cmap(r_vecs, phase_id);
cmap = get_cmap(r_vecs, phase_id, conf.ipf_plane_normal);
slice_R = zeros(size(slice_ids));
slice_G = zeros(size(slice_ids));
......@@ -53,7 +54,7 @@ function gt6DMakePhaseFigureForPaper( phase_mat, phase_id, varargin )
gids(gids < 1) = [];
r_vecs = sample.phases{phase_id}.R_vector(gids, :);
cmap = get_cmap(r_vecs, phase_id);
cmap = get_cmap(r_vecs, phase_id, conf.ipf_plane_normal);
slice_R = zeros(size(slice_ids));
slice_G = zeros(size(slice_ids));
......@@ -162,13 +163,13 @@ function slice = get_slice(vol, plane, slice_idx)
end
end
function cmap = get_cmap(r_vecs, phase_id)
function cmap = get_cmap(r_vecs, phase_id, ipf_plane_normal)
p = gtLoadParameters();
cryst_system = p.cryst(phase_id).crystal_system;
cryst_spacegroup = p.cryst(phase_id).spacegroup;
symm = gtCrystGetSymmetryOperators(cryst_system, cryst_spacegroup);
[cmap, ~, ~] = gtIPFCmap(phase_id, [], ...
[cmap, ~, ~] = gtIPFCmap(phase_id, ipf_plane_normal, ...
'r_vectors', r_vecs, ...
'crystal_system', cryst_system, ...
'background', false, ...
......
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