add_plot_euler_alpha.m 417 Bytes
Newer Older
1
function hts = add_plot_euler_alpha( obj, ax )
2
3
%ADD_PLOT_EULER_ALPHA Add the tissue plot colored with the 1st euler angle.
    
4
    epicells = obj.epicells;
5
6
7
8
9
10
11
    angles = vertcat( epicells.euler_angles );
    alphas = rad2deg( angles( :, 1 ) );
    
    % Wrap back to 0 - 180º.
    neg_alphas = alphas < 0;
    alphas( neg_alphas ) = 180 + alphas( neg_alphas );

12
    hts = add_plot_variable( obj, alphas, ax );
13
14
end