Histogram of misorientation angle

65 views
Skip to first unread message

Shanta Mohapatra

unread,
Jun 4, 2020, 7:58:23 AM6/4/20
to MTEX

Hello,
          I was working out the misorientation angle histogram. But as you can see, I am getting very large plot thus the axis titles are also missing along with the values. I am not able to resolve the issue. And how can I export the data from the plot to an excel sheet/notepad. One more doubt - what 40 stands for in this line : histogram(gB_MgMg.misorientation.angle./degree,40)

{plot (ebsd)
ebsd('Magnesium')
ebsd('Magnesium').orientations
plot(ebsd('Magnesium'),ebsd('Magnesium').orientations,'micronbar','off')

% reconstruct grains with theshold angle 10 degree
grains = calcGrains(ebsd('indexed'),'theshold',10*degree)
% smooth the grains to avoid the stair casing effect
grains = smooth(grains,5);
% plot the grain boundaries on top of the ipf map
hold on
plot(grains.boundary,'lineWidth',1.5)
hold off

%Once the data is in grains, extract the GB information
gB = grains.boundary
%To not include the border of the EBSD map in calculations, create a new variable for only the mg-mg segments
gB_MgMg = gB('Magnesium','Magnesium')
%which can then be plotted, colorised by misorientation if you want
figure;plot(gB_MgMg,gB_MgMg.misorientation.angle./degree,'linewidth',1.5)
mtexColorbar

histogram(gB_MgMg.misorientation.angle./degree,40)
xlabel('misorientation angle (degree)')}


Shanta
histogram.jpg

Rüdiger

unread,
Jun 4, 2020, 10:37:03 AM6/4/20
to mtex...@googlegroups.com
Hi,
a) it looks like you are plotting into an mtex figure with histogram().
You can try to open a new empty figure before plotting.
b) to export the data, export gB_MgMg.misorientation.angle
c) histogram is a Matlab function, see >> help histogram

Mtex comes the function plotAngleDistribution() which you might find useful.

Hope this helps.

Cheers,
Rüdiger



Shanta Mohapatra

unread,
Jun 6, 2020, 3:30:35 AM6/6/20
to MTEX
Hello Rudiger,

Can you help me understand one of the pole figure (extracted from the bulk XRD of extruded pure magnesium? I find it weird. Let me explain you the condition : the pure magnesium is an extruded one. The ED axis is coming out of the plane of the tested surface. Now, when I use plot(pf) only, I get image(1). After recalculation, I get image(2). Now, in image(1), we can see the intensity lebels, its too high. But in image(2), it has drastically reduced. I find it weird. And above all, as the sample is in extruded form, it should have a strong basal ring-like texture in (0002) plot. Why this is so different? Can you please help me in understanding the same?
image1.jpg
image2.jpg

Rüdiger

unread,
Jun 6, 2020, 9:15:01 AM6/6/20
to mtex...@googlegroups.com
Hi,
given the raw pole figures, the reconstruction looks reasonable to me.

The pole figures you plot from the odf show multiples of uniform
density, not intensities. So this makes sense that the two numbers are
quite different.

What intensities would you expect from your measured pole figures?


Cheers,
Rüdiger
> --
> If you want to reduce the number of emails you get through this forum
> login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail,
> click "My membership" and select "Don't send me email updates". You
> can still get emails on selected topics by staring them.
> ---
> You received this message because you are subscribed to the Google
> Groups "MTEX" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mtexmail+u...@googlegroups.com
> <mailto:mtexmail+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mtexmail/b394584d-ec94-405d-a1b8-681289bf164fo%40googlegroups.com
> <https://groups.google.com/d/msgid/mtexmail/b394584d-ec94-405d-a1b8-681289bf164fo%40googlegroups.com?utm_medium=email&utm_source=footer>.


Rüdiger

unread,
Jun 6, 2020, 9:15:12 AM6/6/20
to mtex...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages