mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
287 stars 185 forks source link

problems with plotAxisDistribution/plotAngleDistribution #835

Closed ArneBoch closed 3 years ago

ArneBoch commented 3 years ago

Hello MTEX Team,

doing some investigations into misorientations and MDFs I have got an error by using plotAngleDistribution and plotAxisDistribution. See issue https://github.com/mtex-toolbox/mtex/issues/440, I try it again with new MTEX version :-).

Having a hexagonal CS and a uncorrelated or correlated MDF_measured I can plot without problems:

plotAxisDistribution(MDF_measured); plotAngleDistribution(MDF_measured); plotAxisDistribution(CS);
plotAngleDistribution(CS);

but not:

plotAxisDistribution(calcMDF(uniformODF(cs)));
plotAngleDistribution(calcMDF(uniformODF(cs)));

It looks like that it not depend on CS, this isn't working too:

plotAxisDistribution(calcMDF(uniformODF(crystalSymmetry('cubic'))));

I'm using Matlab 2017b and MTEX 5.6.0.

Thanks for help.

Arne

kilir commented 3 years ago

Hi, if you like to define a uniform misorientation density function, simply define it as uniformODF(cs,cs) and the following should work nicely:

cs = crystalSymmetry('cubic')
mdf_uni = uniformODF(cs,cs)
plotAxisDistribution(mdf_uni);
plotAngleDistribution(mdf_uni);

Cheers, Rüdiger

ArneBoch commented 3 years ago

Hello Rüdiger,

thanks for help! Did not know this possibility. I used calcMDF(uniformODF(cs)) because it looks staight forward :-).

Tschüß

Arne