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

Comparison Table

description

OIM software

mTex software

ebsdlab

IPF ND*

_images/ebsd_OIM_ND.bmp _images/ebsd_mTex_ND.png _images/test_ebsd_verification_ipf_ND.png

IPF RD (OIM), TD (ebsdlab)

_images/ebsd_OIM_RD.bmp

I cannot produce

_images/test_ebsd_verification_ipf_TD.png

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)

    _images/ebsd_mTex_ND.bmp _images/ebsd_mTex_ND.png

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
_images/verification_0_1.png _images/verification_0_2.png _images/verification_0_3.png _images/verification_0_4.png

Bicrystal

Bicrystal Comparison

description

OIM software

mTex software

ebsdlab

IPF ND*

_images/bc_OIM_ND.bmp _images/bc_mTex_ND.png _images/test_ebsd_bicrystal_ipf_ND.png

IPF RD (OIM), TD (ebsdlab)

_images/bc_OIM_RD_y.bmp

I cannot produce

_images/test_ebsd_bicrystal_ipf_TD.png

PF [100]

_images/bc_OIM_PF.bmp _images/bc_mTex_PF.png _images/test_ebsd_bicrystal_pf.png

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
_images/verification_1_1.png
Euler angles at point: [123.8  15.5 177.2]
_images/verification_1_3.png
Euler angles at point: [127.2  78.2  43.1]
_images/verification_1_5.png _images/verification_1_6.png
Euler angles at point: [123.8  15.5 177.2]
_images/verification_1_8.png
Euler angles at point: [127.2  78.2  43.1]
_images/verification_1_10.png _images/verification_1_11.png _images/verification_1_12.png

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).