Problem for plotting misorientation axes #595
-
Hi everyone, hope you all are safe and sound. I've been using a script to generate ebsd-based information for crystals of plagioclase, clinopyroxene and amphibole. The scripts and codes used for all three are pretty much the same, and I change the crystal reference and symmetry accordingly. Everything works like a charm; however, when I run the code to calculate the misorientation axes for plagioclase, I keep getting the following error:
This error message does not pop up on the screen when I use the scripts for clinopyroxene and amphibole, which work fine. What I realised is that the message appears when I use the command 'contourf' to generate the inverse pole figure. If I get rid of it, the IPF with dots appears on screen. However, I want to create the IPF with contours. %% Subset of grains >= 0 (Plagioclase);
ebsdp=ebsd('Plagioclase');
grains_selected_a = selected_grains(selected_grains.grainSize > 0);
plot (grains_selected_a.boundary, 'figSize', 'large')
hold on
odf_grains_selected_a = calcODF(ebsdp(grains_selected_a).orientations,'halfwidth',10*degree)
%% Pair Misorientation Angles-Axes - subset of grains > 0 - CRYSTAL COORDINATES - 2-10 - Contours
gB_plag_plag_a = selected_grains.boundary(grains_selected_a,'Plagioclase',grains_selected_a,'Plagioclase');
MDF_plag_plag_Uniform = uniformODF(ebsd('Plagioclase').CS,ebsd('Plagioclase').CS);
MDF_plag_plag_Uncorrelated = calcMDF(odf_grains_selected_a,odf_grains_selected_a);
gb_axis_plag_a = axis(gB_plag_plag_a.misorientation);
gb_angle_plag_a = angle(gB_plag_plag_a.misorientation)./ degree;
condition = gb_angle_plag_a >= 2 & gb_angle_plag_a < 10;
selected_angles = gb_angle_plag_a(condition);
selected_axes = gb_axis_plag_a(condition);
N_axes = length(selected_axes)
figure
plot(selected_axes,'contourf','antipodal','fundamentalRegion','resolution', 3*degree, 'minmax')
colorbar
hold on
annotate([Miller(1,0,0,ebsd('Plagioclase').CS,'uvw'),...
Miller(0,1,0,ebsd('Plagioclase').CS,'uvw'),...
Miller(0,0,1,ebsd('Plagioclase').CS,'uvw'),...
Miller(1,1,0,ebsd('Plagioclase').CS,'uvw'),...
Miller(-1,1,0,ebsd('Plagioclase').CS,'uvw'),...
Miller(1,0,1,ebsd('Plagioclase').CS,'uvw')],...
'all','labeled','BackgroundColor','w','FontSize',18) Could anybody help me with that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Rhander, would it be possible for you to reduce the script a little bit and investigate where any why the error pops up. Is everything ok with them? what is their symmetry? probably Ralf. |
Beta Was this translation helpful? Give feedback.
-
The code in
it should be
This issue has been fixed in MTEX 5.2. two years ago (commit ab1a365) Ralf. |
Beta Was this translation helpful? Give feedback.
The code in
S2FunHarmonic/symmetrise
(line 63)has a bug. Instead of
it should be
This issue has been fixed in MTEX 5.2. two years ago (commit ab1a365)
Ralf.