mtex
mtex copied to clipboard
S2Fun/plot should honor mtex coordinates in 3d plot
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:
No:
In other situations, balls are plotted correctly, e.g. for colorkeys in grains.