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
278 stars 183 forks source link

plotting convention not considered by plotPDF #1988

Closed kilir closed 8 months ago

kilir commented 10 months ago

The default plotting convention is not honoured by odf/plotPDF() unless appendend in the plotting command.

In the example, +Y should be consitently pointing south.

% % plotting convention mtex>6.x
pC = plottingConvention;
pC.north=-yvector;
pC.east=xvector;
setMTEXpref('xyzPlotting',pC);

%% plot something
cs = crystalSymmetry('mmm')
h=Miller({1,0,0},{0,1,0},{0,0,1},cs)

ori = orientation.rand(1000,cs)

plotPDF(ori,h,'MarkerSize',2)

odf= calcDensity(ori)

nextAxis
plotPDF(odf,h) 

nextAxis
plotPDF(odf,h,pC) 
out