Open creuzige opened 6 months ago
Hi creuzige,
I found this workaround for issue 3 (missing 'set' method), which is to change the ebsd.plottingConvention.east and ebsd.plottingConvention.outOfScreen fields directly:
e.g. :
ebsd.plottingConvention.east= -vector3d.X;
ebsd.plottingConvention.outOfScreen=vector3d.Z;
% setMTEXpref('xAxisDirection','west');
% setMTEXpref('zAxisDirection','outOfPlane');
figure; plot(ebsd,ebsd.bc,ebsd.plottingConvention)
You still have to pass ebsd.plottingConvention explicitly into plot(), but for me it is convenient as it is one fewer variable to keep track of.
Re: your question 1, does this work? here is an ebsd map at a funny angle:
ebsd.plottingConvention.east= -vector3d.X;
ebsd.plottingConvention.outOfScreen=vector3d(-1,-1,-1);
ebsd.plottingConvention
ans = plottingConvention
outOfScreen: (-1,-1,-1) north : (0,1,-1)
east : (-2,1,1)
figure; plot(ebsd,ebsd.bc,ebsd.plottingConvention)
Small bug I noticed: the micronbar seems to disappear when the map is rotated in this way - maybe it is drawn in a no-longer-visible position?
Vivian
What do you want to do?
Following up on the request in https://github.com/mtex-toolbox/mtex/issues/1952 to check the new plotting convention functions in 6.0.beta2
I ran into three issues and two questions:
Issues
Original image with defaults:
With updated plotting conventions:
These don't seem to change the plotting conventions anymore. Maybe these should be replaced with the new commands?
The use case I found this is that the EBSD image is flipped in Y; I'm gathering because the Oxford EBSD data seems to start with 0,0 in the upper left corner with Y down...
Questions
How can I view the EBSD data from a 3D perspective? My use case here is that I have a sample that I placed in a goniometer and I am applying external rotations to the EBSD sample and want to align the sample to the goniometer coordinate system.
For alignment of coordinates, did the EBSD 'shift' command get converted to a vector3d as well, or is it still xy only?
What MTEX version do you use?
Using 6.0.beta2, Matlab R2022a, Mac OS 13.6.3