-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCXRD.m
43 lines (30 loc) · 838 Bytes
/
SCXRD.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%% Import Script for PoleFigure Data
%% Specify Crystal and Specimen Symmetries
% crystal symmetry
CS = crystalSymmetry('m-3m', [2.9 2.9 2.9]);
% plotting convention
setMTEXpref('xAxisDirection','north');
setMTEXpref('zAxisDirection','outOfPlane');
% path to files
pname = 'C:\Users\23727\Desktop\XRD织构数据';
fname = [pname '\SiFe-Texture-PSD.uxd'];
%% Specify Miller Indice
h = { ...
Miller(1,1,0,CS),...
Miller(2,2,0,CS),...
Miller(3,1,1,CS),...
};
%% Import the Data
% create a Pole Figure variable containing the data
pf = PoleFigure.load(fname,h,CS,'interface','uxd');
figure
plot(pf,'MarkerSize',2)
mtexColorbar
figure
plot(pf,'contourf')
mtexColorbar
mtexColorMap parula
odf = calcODF(pf,'silent')
plotPDF(odf,pf.h,'antipodal')
mtexColorMap parula
mtexColorbar