plot

(method of EBSD)

spatial EBSD plot

Syntax

% colorize according to phase
plot(ebsd)
% colorize according to arbitrary value - here MAD
plot(ebsd,ebsd.mad)
% colorize according to orientation
plot(ebsd('phaseName'),ebsd('phaseName').orientation)
% colorize according to custom color
oM = ipfColorKey(ebsd('phaseName'))
color = oM.orientation2color(ebsd('phaseName').orientations);
plot(ebsd('phaseName'),color)
% specify the color directly and show in Legend
badMAD = ebsd.mad > 1;
plot(ebsd(badMAD),'faceColor','black,'DisplayName','bad values')

Input

ebsd

EBSD

color

length(ebsd) x 3 vector of RGB values

param,val Parameters and values that control plot
Parameter Description
'micronbar'

'on'/'off'

'DisplayName'

add a legend entry

param Options that control the plot behavior
Parameter Description
'points'

plot dots instead of unitcells

Example

mtexdata forsterite
plot(ebsd)
% colorize accoding to orientations
plot(ebsd('Forsterite'),ebsd('Forsterite').orientations)
% colorize according to MAD
plot(ebsd,ebsd.mad,'micronbar','off')

See also

EBSDSpatialPlots