To work with grain boundaries we need some ebsd data and have to detect grains within the data set.
Now we can extract from the grains its boundary and save it to a separate variable
The output tells us that we have 3219 Magnesium to Magnesium boundary segments and 606 boundary segments where the grains are cut by the scanning boundary. To restrict the grain boundaries to a specific phase transition you shall do
Properties of grain boundaries
A variable of type grain boundary contains the following properties
misorientation
direction
segLength
These can be used to colorize the grain boundaries. By the following command we plot the grain boundaries colorized by the misorientation angle