overlay colorised boundary misorentation on greyscale band contrast?

68 views
Skip to first unread message

grandr...@gmail.com

unread,
Mar 1, 2018, 9:29:19 PM3/1/18
to MTEX
I'm trying to overlay the grain boundary misorienation over a greyscale map of the band contrast.  Unfortunately it seems that both are greyscale, or both are coloured.  My code is below. 

Any suggestions for how to affect the ebsd map independently from the grain boundary overlay?

figure;
plot
(ebsd,ebsd.bc)
mtexColorMap black2white

temp1
=grains.boundary(grains.boundary.phaseId(:,1)==2&grains.boundary.phaseId(:,2)==2);
hold all
ax2
=plot(temp1,temp1.misorientation.angle./degree, 'linewidth',2,'FaceAlpha',0.5)
ax2
.CDataMapping = 'direct';
hold off

Thanks,

Jim Hickey

unread,
Mar 2, 2018, 5:06:39 AM3/2/18
to MTEX
Hi, 

I asked this question last year and you can do it although there are still a few issues. 


Not sure if the latest MTex updates makes this a little more straightforward..? 

Jim. 

Rüdiger Kilian

unread,
Mar 2, 2018, 8:39:53 AM3/2/18
to mtex...@googlegroups.com
Hi Jessica,
in case you can live with just wone colorbar for e.g. the boudnaries, here's another example:

mtexdata twins
grains=calcGrains(ebsd);
col=ind2rgb(ind,gray(255));
col=squeeze(col);
plot(ebsd,col)
hold on
plot(grains.boundary('m','m'),grains.boundary('m','m').misorientation.angle,'linewidth',2)
hold off
f=gcm;
mtexColorbar(f.currentAxes,'Title','angle')

Cheers,
Rüdiger

grandr...@gmail.com

unread,
Mar 19, 2018, 11:33:11 AM3/19/18
to MTEX
Thank you for helping with this, I finally got around to adding it to the app, hopefully it'll be in the next rev.

One note for others who want to use this,

col=ind2rgb(ind,gray(255));  needs to be col=ind2rgb(ebsd.bc,gray(255));

Cheers, Jessica.
Reply all
Reply to author
Forward
0 new messages