Verification¶
ebsdlab plots the same maps as OIM and mTex, which differ in coordinate system, projection direction and color scheme. Here ebsdlab is compared one to one with both; maps from publications are on the next page (Comparison with published images).
Same map in OIM and mTex¶
Copper polycrystal¶
description |
OIM software |
mTex software |
ebsdlab |
|---|---|---|---|
IPF ND* |
|
|
|
IPF RD (OIM), TD (ebsdlab) |
|
I cannot produce |
|
OIM’s RD is the file’s x-axis, which points up in the map. ebsdlab names the directions after the map (RD = X right, TD = Y down, ND = Z into the sample; see Conventions), so OIM’s RD is ebsdlab’s -TD, which has the same IPF colors.
Issues in mTex:
Inverse pole figure: bmp image (left) has a low color number when exporting from external window. The png figure export works better (right)
Python code to create ebsdlab results:
from ebsdlab.ebsd import EBSD
e = EBSD("../tests/DataFiles/EBSD.ang")
e.maskCI(0.1)
e.plotIPF("ND")
e.addScaleBar()
e.plotIPF("TD")
e.addScaleBar();
Load .ang file: ../tests/DataFiles/EBSD.ang
Read file with step size: 0.2 0.17321 HexGrid
Optimal image pixel size: 103
Number of points: 23909
Bicrystal¶
description |
OIM software |
mTex software |
ebsdlab |
|---|---|---|---|
IPF ND* |
|
|
|
IPF RD (OIM), TD (ebsdlab) |
|
I cannot produce |
|
PF [100] |
|
|
|
Python code to create the bicrystal results:
e = EBSD("../tests/DataFiles/EBSD.ang")
e.cropVMask(ymin=35)
e.plotIPF("ND")
e.addSymbol(5, 37, scale=2)
e.addSymbol(18, 37, scale=2)
e.plotIPF("TD")
e.addSymbol(5, 37, scale=2)
e.addSymbol(18, 37, scale=2)
e.plotPF([1, 0, 0], points=True)
Load .ang file: ../tests/DataFiles/EBSD.ang
Read file with step size: 0.2 0.17321 HexGrid
Optimal image pixel size: 103
Number of points: 23909
Euler angles at point: [123.8 15.5 177.2]
Euler angles at point: [127.2 78.2 43.1]
Euler angles at point: [123.8 15.5 177.2]
Euler angles at point: [127.2 78.2 43.1]
How to run mTex¶
>> startup_mtex
>> import_wizard('ebsd')
% and select EBSD.osc
% select plotting convention 5: x-to-right; y-to-bottom
% select "convert Euler 2 Spatial Reference Frame"
% save to workspace variable
>> csCopper = ebsd('Cu').CS;
>> plot(ebsd('Cu'),ebsd('Cu').orientations,'coordinates','on')
>> cS = crystalShape.cube(ebsd.CS)
>> region = [0 35 50 50];
>> ebsdC = ebsd(inpolygon(ebsd,region))
>> plot(ebsdC('Cu'),ebsdC('Cu').orientations,'coordinates','on')
>> plotPDF(ebsd('Cu').orientations, Miller({1 0 0},csCopper))
% select xNorth zOutOfPlane as axis in mTex (the default gives a different pole figure)
>> plotPDF(ebsd('Cu').orientations, Miller({1 1 1},csCopper))
Save figures from a separate window as png (the bmp color scale is broken).