Dr. Hielscher,
First, my apologies for misspelling your name in my last post.
Second, after more carefully following your previous post, I now have things working for individual EBSD datapoints, which I will detail at the end of this post. This is a most helpful visualization for us, thank you.
Third, I am able to create bitmap versions of the resulting figure, but color is not written to the vector versions.... maybe this should be the subject of a different question though. I am running MTEX 3.4.1 on MATLAB2012b on Fedora 18 and can generate both PNG and PDF versions of other figures (pole figures, EBSD maps using IPF coloration, etc) with full color, but the only thing that appears on the PDF version of Schmid factor maps are the axes and a blank, white, map. This is true whether I am doing grains or individual EBSD datapoints.
%% this is what usually happens when I can successfully create PDF version:
plot(ebsd)
savefigure('newfile.pdf')
CData =
[29195x1x3 double]
%% this is what happens when trying to make a PDF version of Schmid factor maps:
plot(ebsd('Ice Ih 100K'),'property',abs(tauMax(:)))
savefigure('newfile.pdf')
CData =
{}
CData =
{}
The "Save As..." feature of the MATLAB plot window simply embeds a bitmap version inside a PDF document, which is not helpful. Any thoughts you may have on the matter would be appreciated.
Anyway, here for posterity is the process of creating Schmid factor maps for individual EBSD data points:
%%%% Schmid factor mapping for INDIVIDUAL data points %%%%%
%% import EBSD data
import27FEB13
%% get orientations for each EBSD data point
ori = get(ebsd('Ice Ih 100K'),'orientations');
%% set up applied stress || macroscopic Y direction
MY=zeros(3); MY(2,2)=-1; sigmaY=tensor(MY,'name','stress');
%% applied stress in crystal coordinate system
sigmaCS = rotate(sigmaY,inverse(ori));
%% define slip system
icecs=symmetry('6/mmm', [4.4961 4.4961 7.3198], 'X||a*', 'Y||b', 'Z||c*', 'mineral', 'Ice Ih 100K');
m = Miller(0,0,0,1,icecs); % normal to the slip plane
n = Miller(1,1,-2,0,icecs); % slip direction in the slip plane
%% calculate Schmid factors
[tauMax,m,n,tau] = calcShearStress(sigmaCS,m,n,'symmetrise');
%% plot map
plot(ebsd('Ice Ih 100K'),'property',abs(tauMax(:)))
colorbar
The resulting map is attached and is the same dataset shown in the first post. The horizontal "lines" in the orientation data are misorientations induced by SEM stage movements during data collection -- we suffer a large change in working distance during moves in the Y direction, but these are unavoidable since the grains in ice are so large.
Thank you again for your help with all of this and, of course, for the toolbox itself.
DAN