plottingConvention edit page

class describing the alignment of a reference frame on the screen

Syntax

% specify a custom plotting convention
pC = plottingConvention(outOfScreen,east)
plot(ebsd,pC)
% specify a custom plotting convention by a string - each axis is
% followed or preceded by the direction it points to on screen
pC = plottingConvention('y↑→x')  % y points up, x points to the right
pC = plottingConvention('x←↑y')  % x points to the left, y points up
pC = plottingConvention('z⊙→x')  % z points out of screen, x right
pC = plottingConvention('y^->x') % same as 'y↑→x', ASCII arrows
% changing the default plotting convention - note that the default has
% to be modified in place, plottingConvention.default.east = yvector
% would replace it and detach all data that refers to it
pC = plottingConvention.default; pC.east = yvector;
% changing the plotting convention for a dataset
% to be used in all future plotting commands
ebsd.how2plot = pC

Input

outOfScreen vector3d
east vector3d
str char, e.g. 'y↑→x', see the syntax above

Output

pC plottingConvention