diff --git a/src/@deproj/add_plot_euler_gamma.m b/src/@deproj/add_plot_euler_gamma.m index 29659051857bad28a60a4c1e57302b9ad2c263f1..8747535632cf99073df5f52ca0088ba8fed0acfd 100644 --- a/src/@deproj/add_plot_euler_gamma.m +++ b/src/@deproj/add_plot_euler_gamma.m @@ -4,6 +4,10 @@ function hts = add_plot_euler_gamma( obj, ax ) epicells = obj.epicells; angles = vertcat( epicells.euler_angles ); gammas = rad2deg( angles( :, 3 ) ); + + neg_gammas = gammas < 0; + gammas( neg_gammas ) = 180 + gammas( neg_gammas ); + hts = add_plot_variable( obj, gammas, ax ); end