Skip to content
Snippets Groups Projects
Commit c5609ce9 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

Formatting and commenting...


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@987 4c865b51-4357-4376-afb4-474e03ccb993
parent 1843808e
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ else %more difficult... ...@@ -58,7 +58,7 @@ else %more difficult...
end end
for x=[1:size(section, 2)] %along the rows for x=1:size(section, 2) %along the rows
%estimate how thick a layer we should look at to get near surface %estimate how thick a layer we should look at to get near surface
%grains %grains
...@@ -99,7 +99,7 @@ set(get(get(section_id, 'CurrentAxes'), 'Title'), 'String',sprintf('Section at a ...@@ -99,7 +99,7 @@ set(get(get(section_id, 'CurrentAxes'), 'Title'), 'String',sprintf('Section at a
set(get(get(section_id, 'CurrentAxes'), 'yLabel'),'String', 'z axis') set(get(get(section_id, 'CurrentAxes'), 'yLabel'),'String', 'z axis')
set(get(get(section_id, 'CurrentAxes'), 'xLabel'),'String', 'y axis') set(get(get(section_id, 'CurrentAxes'), 'xLabel'),'String', 'y axis')
axis equal axis equal
axis square
if 0 if 0
...@@ -152,10 +152,10 @@ for i=1:length(grains) ...@@ -152,10 +152,10 @@ for i=1:length(grains)
%basal trace %basal trace
x_tilt=atand(-basal_trace(3)/basal_trace(2)); x_tilt=atand(-basal_trace(3)/basal_trace(2));
%display for user %display for user
disp(sprintf('c_axis of grain %d - in 3D coordinates, after sample rotation, is:', grain)) fprintf('c_axis of grain %d - in 3D coordinates, after sample rotation, is:\n', grain)
disp(sprintf('%0.2f %0.2f %0.2f', c_axis(1), c_axis(2), c_axis(3))) fprintf('%0.2f %0.2f %0.2f\n', c_axis(1), c_axis(2), c_axis(3))
disp(sprintf('x_tilt for grain %d should be %0.2f degrees', grain, x_tilt)) fprintf('x_tilt for grain %d should be %0.2f degrees\n', grain, x_tilt)
disp(sprintf('y_tilt for grain %d should be %0.2f degrees', grain, y_tilt)) fprintf('y_tilt for grain %d should be %0.2f degrees\n', grain, y_tilt)
disp('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') disp('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
else else
...@@ -170,3 +170,4 @@ grains(find(dum))=[]; ...@@ -170,3 +170,4 @@ grains(find(dum))=[];
%change gtPlotHexagon to take the two coordinate systems into account %change gtPlotHexagon to take the two coordinate systems into account
gtPlotHexagon(grains, r_vectors, angle, cmap) gtPlotHexagon(grains, r_vectors, angle, cmap)
end % end of function
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