close all
CS = {...
'notIndexed',...
crystalSymmetry('432', [3.6 3.6 3.6], 'mineral', 'Copper', 'color', [0.53 0.81 0.98])};
% plotting convention
plotx2north
plotzOutOfPlane
%% Import the Data
fname = 'FSW AL.ang'
% create an EBSD variable containing the data
ebsd = EBSD.load(fname,CS,'interface','ang',...
'convertSpatial2EulerReferenceFrame','setting 2');
%% Plot IPF X Y Z
ipfkey = ipfTSLKey(ebsd)
ipfkey.inversePoleFigureDirection = xvector;
oriColors = ipfkey.orientation2color(ebsd.orientations);
plot(ebsd,oriColors)
hold on
% plot(grains.boundary,'linewidth',1)
title('IPF X')
hold off
nextAxis
hold on
ipfkey.inversePoleFigureDirection = yvector;
oriColors = ipfkey.orientation2color(ebsd.orientations);
plot(ebsd,oriColors)
% plot(grains.boundary,'linewidth',1)
title('IPF Y')
hold off
nextAxis
hold on
ipfkey.inversePoleFigureDirection = zvector;
oriColors = ipfkey.orientation2color(ebsd.orientations);
plot(ebsd,oriColors,'figSize','small')
% plot(grains.boundary,'linewidth',1)
title('IPF Z')
hold off
movegui('center')
% Plot TSL ipf key
figure
plot(ipfkey,'figSize','tiny')
movegui('center')