Fundamental sector in the inverse pole figure

188 views
Skip to first unread message

Ric Dons

unread,
Jan 25, 2018, 12:28:54 PM1/25/18
to MTEX

Dear MTEX users,

I have a question (maybe the corresponding answer is very simple and clear, i am sorry...) regarding the showed fundamental sector obtainable by

oM = ipdfHSVOrientationMapping(ebsd)
plot(oM)

I am working with some EBSD data (by MTEX 4.5.2)  by
cs = crystalSymmetry('m-3m'),

where, by the default method, the resulting fundamental sector apply white to the center and red, blue and green to the vertices (corresponding to [001],[111] and [011], respectively)

Now, I would like to change it so that I can have the symmetric fundamental sector , with the black colour in the center and
red, blue and green to the vertices (corresponding to [001],[111] and [101], respectively), in order to change the corresponding colour scale in the plot of my EBSD orientations, coherently to the EBSD map showed by my laboratory system. I prefer to not enlarge the fundamental sector by  ."properGroup"
The issue can be showed in the attached image file.

Thank you for your attention

Regards



Ric


Image example.jpg

Ralf Hielscher

unread,
Jan 25, 2018, 12:51:29 PM1/25/18
to MTEX
try

oM = HKLOrientationMapping(ebsd)

Ralf

Ric Dons

unread,
Jan 26, 2018, 10:41:11 AM1/26/18
to MTEX

Thank you Ralf for your ver useful reply.
I am working on your suggestions and I am observing that the fundamental sector image has actually changed your center colour (from white to black), but the indicated direction are the same like the default one. Indeed, I would like to see the direction [101] in the green vertex (whilst it is possible to see the [011] direction again). Substantially, taking into account the complete figure, I'd like to show only the specular part of the default image. You can see the considering sector in the figure that I would like to show lihe fundamental sector in the attached image file.

Is it possible to obtain this change for the representation EBSD fundametal sector image? Or, 
am I missing a very simple something ?

After that, I would to compute my ebsd data on the basis of the aforesaid choice..I guess tha the right command will be:
color = oM.orientation2color(ebsd.orientations);
plot(ebsd,colour)

Thank you again

Ric


ImageSector.jpg

Rüdiger Kilian

unread,
Jan 26, 2018, 12:42:23 PM1/26/18
to mtex...@googlegroups.com
Hi Ric,
the orientation mapping you originally showed with Red, Green and Blue corners, is the HKLorientationMapping while the one you showed in your second mail is the ipdfHSV mapping, there's also yellow, turquise and magenta, also in dark sectors.

Anyhow, while the fundamental sectors are symmetrically identical (so actually it doesn't matter which  the labeling you look at), I think you could  set

setMTEXpref('bAxisDirection','');
setMTEXpref('aAxisDirection','east');

and I guess it'll look like suggested.

cs=crystalSymmetry('m-3m')
om = HKLOrientationMapping(cs)
plot(om)

Hope this helps.
Cheers,
Rüdiger



Ric Dons

unread,
Jan 29, 2018, 8:49:24 AM1/29/18
to MTEX
Dear Ralf,
thank you again for your new reply. Also this was very useful, indeed your indications work, they focused exaclty the issue that i am considering.
Now, I am trying to compute the color for the corresponding EBSD orientations to plot.
After your indicated right instructions, I wrote:

color = om.orientation2color(ebsd.orientations);

 
but, after that, I obtain the following warnings:

Error using repmat
Requested 10000x190852 (14.2GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a
long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.

Error in meshgrid (line 58)
        xx = repmat(xrow,size(ycol));

Error in sphericalRegion/thetaRange (line 124)
        [rho,theta] = meshgrid(rho,theta);

Error in HKLOrientationMapping/Miller2color (line 42)
      [~, maxTheta] = thetaRange(sR,rho);

Error in ipdfOrientationMapping/orientation2color (line 87)
      rgb = Miller2color(oM,h);


So the following instruction does not work:
plot(ebsd,color)

What could the issue be? Is it a problem of MTEX? Or something wrong is present in my instructions?

Thank you very much for your kind help

Ric

Il giorno giovedì 25 gennaio 2018 18:28:54 UTC+1, Ric Dons ha scritto:

ruediger Kilian

unread,
Jan 29, 2018, 9:12:52 AM1/29/18
to mtex...@googlegroups.com
Hi Ric,
this is a bug in HKLOrientationMapping.

Till it is fixed you can edit line 42 in mtex/tools/OrientationMappings/HKLOrientationMapping.m
to read:
[~, maxTheta] = sR.thetaRange;

That works for me.

Cheers,
Rüdiger


Ric Dons

unread,
Feb 5, 2018, 5:28:42 AM2/5/18
to MTEX
Thank you very much Rudiger.

Now the procedure work!

Thanks again


Ric

Il giorno giovedì 25 gennaio 2018 18:28:54 UTC+1, Ric Dons ha scritto:
Reply all
Reply to author
Forward
0 new messages