When analyzing texture gradients it is sometime helpful to look at the EBSD data restricted to a single line and plot profiles of certain properties along this line. In order to illustrate 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.
Next we specify a line segment through the grain
The command spatialProfile restricts the EBSD data to this line
Next, we plot the misorientation angle to the first point of the line as well as the orientation gradient
We can also plot the orientations along this line into inverse pole figures and colorize them according to their y-coordinate