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

When plotting PF of both upper and lower hemispheres, Miller indexes not overlaying properly #1079

Closed jhiscocks closed 3 years ago

jhiscocks commented 3 years ago

I might be missing a syntax error here or something, but when I use the following code, only the first one of the miller indexes plots

%load some test data
mtexdata twins
%copy the symmetry to a new variable
cs=ebsd('Magnesium').CS
%define the Miller indexes you want to plot
m0=Miller(1,1,-2,0,cs,'HKIL')
m1=Miller(1,1,-2,3,cs,'HKIL');
m2=Miller(1,1,-2,3,cs,'UVTW')
%create a figure
figure;plot(m0,'labeled','backgroundColor','white','grid','MarkerSize',10)
hold on
plot(m1,'labeled','backgroundColor','white','grid','MarkerSize',10)
plot(m2,'labeled','backgroundColor','white','grid','MarkerSize',10)

However when I restrict the plot to one hemisphere, I get the behaviour I would expect, and all three miller indexes plot with their annotations.

%load some test data
mtexdata twins
%copy the symmetry to a new variable
cs=ebsd('Magnesium').CS
%define the Miller indexes you want to plot
m0=Miller(1,1,-2,0,cs,'HKIL')
m1=Miller(1,1,-2,3,cs,'HKIL');
m2=Miller(1,1,-2,3,cs,'UVTW')
%create a figure
figure;plot(m0,'upper','labeled','backgroundColor','white','grid','MarkerSize',10)
hold on
plot(m1,'upper','labeled','backgroundColor','white','grid','MarkerSize',10)
plot(m2,'upper','labeled','backgroundColor','white','grid','MarkerSize',10)
kilir commented 3 years ago

Hi, 'add2all' is required in that case.

figure;plot(m0,'labeled','backgroundColor','white','grid','MarkerSize',10)
hold on
plot(m1,'labeled','backgroundColor','white','grid','MarkerSize',10,'add2all')
plot(m2,'labeled','backgroundColor','white','grid','MarkerSize',10, 'add2all')
hold off

Cheers, Rüdiger