mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
281 stars 185 forks source link

Possible bug with annotation in IPF #183

Closed luizmorales closed 8 years ago

luizmorales commented 8 years ago

Hi all

I've just noticed that the command annotate is not working properly for IPF in my MTEX 4.3.1 (Mac OS El Capitan, Matlab 2015b), it works perfectly in 4.2.1, buit in the version 4.3.1 it plots just 3 axes, and two of them are in the same corner. This is how I am using:

% add crystallographic axes
annotate([Miller(1,0,-1,0,ebsd('calcite').CS,'uvtw'),...
          Miller(1,-1,0,0,ebsd('calcite').CS,'uvtw'),...
          Miller(1,-1,0,3,ebsd('calcite').CS,'uvtw'),...
          Miller(2,-2,0,2,ebsd('calcite').CS,'uvtw'),...
          Miller(2,-1,-1,1,ebsd('calcite').CS,'uvtw'),...
          Miller(2,-1,-1,2,ebsd('calcite').CS,'uvtw'),...          
          Miller(2,-2,0,1,ebsd('calcite').CS,'uvtw'),...
          Miller(0,0,0,1,ebsd('calcite').CS,'uvtw'),...
          Miller(4,0,-4,1,ebsd('calcite').CS,'uvtw'),...
          Miller(4,-4,0,1,ebsd('calcite').CS,'uvtw'),...
          Miller(1,0,-1,1,ebsd('calcite').CS,'uvtw'),...         
          Miller(2,0,-2,1,ebsd('calcite').CS,'uvtw')],'all','labeled','BackgroundColor','w')
drawNow(gcm,'figSize','large')
 plot file to data location
plot_filename2 = strcat('CHMT-16_10_microns_calcite_MDF_calcMisorientation_Section_',s_section_angle,'.tif')
% save file
saveFigure(plot_filename2)
close all
end

Maybe just a bug in my version?

all the best

Luiz

kilir commented 8 years ago

Hi Luiz, try 'symmetrised' instead of 'all'. Works for me. Cheers, Rüdiger