mtex icon indicating copy to clipboard operation
mtex copied to clipboard

S2Fun/plot should honor mtex coordinates in 3d plot

Open kilir opened this issue 4 years ago • 0 comments

Plotting S2Fun with the '3d' option lands the plot in a matlab figure which has in cases the view direction not aligned to the mtex coodiante system.


sf = calcDensity(xvector)
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','intoPlane');
f= newMtexFigure
plot(sf,'3d','parent',f.gca)
hold on
plot(xvector,'upper','labeled')
hold off
mtexTitle('correct')

sf = calcDensity(xvector)
setMTEXpref('xAxisDirection','north');
setMTEXpref('zAxisDirection','intoPlane');
f= newMtexFigure
plot(sf,'3d','parent',f.gca)
hold on
plot(xvector,'upper','labeled')
hold off
mtexTitle('not so correct')

So far, setting f.setCamera doesn't help. Yes: correct No: not_so_correct

In other situations, balls are plotted correctly, e.g. for colorkeys in grains.

kilir avatar May 12 '20 07:05 kilir