Superposing plots #715
Unanswered
Jesusmunozmontecinos
asked this question in
Ask Anything
Replies: 1 comment
-
Hi Jesus, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I come again to you in order to ask about superposing plots.
My idea is to plot a mis2mean map of Lawsonite (or whatever mineral, attached picture) over the band contrast image (in gray scale or black and white) without loosing the color map and colorbar (and also the grain boundaries) of my mis2mean map. I have not managed to do that with the documentation found here https://mtex-toolbox.github.io/EBSDPlotting.html
Code:
region = [15 13 2323 2213];
condition = inpolygon(ebsd,region);
ebsd = ebsd(condition)
[grains,ebsd('indexed').grainId,ebsd.mis2mean] = calcGrains(ebsd('indexed'));
[grains,ebsd('indexed').grainId,ebsd.mis2mean] = calcGrains(ebsd('indexed'),'angle',10*degree);
F = halfQuadraticFilter;
ebsdS = smooth(ebsd('indexed'),F,'fill',grains);
[grains,ebsdS('indexed').grainId,ebsdS.mis2mean] = calcGrains(ebsdS('indexed'));
------- all of this is what I would have to superpose with a black and white or grayscale band contrast image as background,
mainly for aesthetic reasons
plot(ebsdS('Lawsonite'),ebsdS('Lawsonite').mis2mean.angle./degree)
mtexColorbar
hold on
plot(grains.boundary,'edgecolor','k','linewidth',1.5)
hold off
CLim(gcm,[0 10])
mtexColorMap jet
% the result of this has been attached

Can someone help me with my little code, where should I modify in order to add the band contrast image background?
Hopping you a nice week,
Jesús
Beta Was this translation helpful? Give feedback.
All reactions