What do you want to do?
I want to map the cell of a specific grain and the slip system
What data do you have?
What code do you use?
Please provide minimalist code with code in the following form
1. Plot the cells of all grains
cS = crystalShape.hex(ebsd.CS);
plot(grains, cS * 0.8,'FaceColor', 'r','linewidth', 1, 'color' )
2. Plot the cell of a specific grain
[x, y] = ginput(1);
ori = ebsd(x,y).orientations
figure;
plot(ori * cS,'faceAlpha',0.2)
The orientation of the cells drawn by the two methods is inconsistent
% load the data
ebsd = EBSD.load('myFile.txt')
% plot a pole figure
plotPDF(ebsd,Miller(1,0,0,ebsd.CS)
What result do you get
What result do you expect
Error Message
If you get an error message copy and paste it below
What do you want to do? I want to map the cell of a specific grain and the slip system What data do you have?
What code do you use? Please provide minimalist code with code in the following form
What result do you get
What result do you expect
Error Message If you get an error message copy and paste it below
What MTEX version do you use? mtex 5.11.1