Plotting a material property data in MTEX 3.4.2

162 views
Skip to first unread message

Sudipta Pramanik

unread,
Jul 28, 2014, 9:50:33 AM7/28/14
to mtex...@googlegroups.com
Please be as detailed as possible, explain what you want to do, what kind of data you are using. Attaching simplified code and data is always useful. Click the the button { } to inline code and finally remove these lines before posting :)
I am having a dataset having four columns, the first three columns contains the Euler angles and the fourth contains the Taylor factor for that orientation. There are 10000 orientations. Is it possible to  plot the data on a (100) stereogram in MTEX 3.4.2 ?

latm...@gmail.com

unread,
Jul 29, 2014, 2:13:36 AM7/29/14
to mtex...@googlegroups.com
Try this code:

% Specify path to your file with orientations and Taylor factor
taylorFile
= 'Taylor.inp';

% Specify crystal symmetry
CS
= symmetry('cubic');
% Specify specimen symmetry
SS
= symmetry('triclinic');

% Load Euler angles as generic EBSD data
myData
= loadEBSD_generic(taylorFile,'CS',CS,'SS',SS, 'ColumnNames',{'Euler1' 'Euler2' 'Euler3' 'Taylor'}, 'Bunge');

% Get orientations from the imported data
ori
= get(myData,'orientations');
% Get values of Taylor factor from the imported data
tayFac
= get(myData,'Taylor');

% Specify pole figure to plot
hkl2plot
= Miller(1,0,0);

% Plot orientations in a pole figure with color-coding according to Taylor factors
figure
; plotpdf(ori,hkl2plot,'points','all','property',tayFac)
colorbar
;

You may want to change path to the file (taylorFile) and crystal symmetry (CS). You can also control the number of orientations to plot by replacing 'all' with the desired number in plotpdf command.
Finally, the rainbow of the color bar can be controlled by adding a command

setcolorrange([min max]);

I hope this will work for you.

Marat Latypov,
POSTECH.

Sudipta Pramanik

unread,
Jul 29, 2014, 10:24:48 AM7/29/14
to mtex...@googlegroups.com
Dear Marat,
Thanks for your codes. It worked
Reply all
Reply to author
Forward
0 new messages