Line Profiles edit page

When analyzing texture gradients it is sometime helpful to look at the EBSD data rstricted to a single line and plot profiles of certain properties along this line. In order to illustarte this at an example let us import some EBSD data, reconstruct grains and select the grain with the largest GOS (grain orientation spread) for further analysis.

close all
mtexdata forsterite

% reconstruct grains
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd('indexed'));

% find the grain with maximum grain orientation spread
[~,id] = max(grains.GOS);
grain_selected = grains(id)

% plot the grain with its orientations
close all
hold on
hold off
ebsd = EBSD
 Phase  Orientations     Mineral         Color  Symmetry  Crystal reference frame
     0   58485 (24%)  notIndexed                                                 
     1  152345 (62%)  Forsterite  LightSkyBlue       mmm                         
     2   26058 (11%)   Enstatite  DarkSeaGreen       mmm                         
     3   9064 (3.7%)    Diopside     Goldenrod     12/m1       X||a*, Y||b*, Z||c
 Properties: bands, bc, bs, error, mad, x, y
 Scan unit : um
grain_selected = grain2d
 Phase  Grains  Pixels     Mineral  Symmetry  Crystal reference frame
     1       1    2614  Forsterite       mmm                         
 boundary segments: 458 (20261 µm)
 inner boundary segments: 48 (2152 µm)
 triple points: 28
   Id   Phase   Pixels   phi1   Phi   phi2       GOS
 1856       1     2614    153   109    246   0.17005

Next we specify a line segment through the grain

% line segment
lineSec =  [18826   6438; 18089 10599];

% draw the line into the plot

The command spatialProfile restricts the EBSD data to this line

ebsd_line = spatialProfile(ebsd(grain_selected),lineSec)
ebsd_line = EBSD
 Phase  Orientations     Mineral         Color  Symmetry  Crystal reference frame
     1    116 (100%)  Forsterite  LightSkyBlue       mmm                         
 Properties: bands, bc, bs, error, mad, x, y, grainId, mis2mean
 Scan unit : um

Next, we plot the misorientation angle to the first point of the line as well as the orientation gradient

close all % close previous plots

% misorientation angle to the first orientation on the line

% misorientation gradient
hold all
hold off

xlabel('y'); ylabel('misorientation angle in degree')

legend('to reference orientation','orientation gradient')

We can also plot the orientations along this line into inverse pole figures and colorize them according to their y-coordinate