Plot Hardness on IPF with color contour

41 views
Skip to first unread message

Mirtunjay Kumar

unread,
Sep 19, 2019, 8:05:02 AM9/19/19
to MTEX
Hello,

I have phi1, Phi and Phi2 with associated hardness value and I would like to plot with the color contour in the IPF triangle. 

35, 38,89     86.2
25,22,66.2    95.2
.....
....
....
(around 100 points)

I wish to have a plot with colour code choosing a minimum of Hardness as one end and maximum of Hardness at another end of color bar

May you please guide me how to proceed for this kind of map.

Thank You,
Mirtunjay

ruediger Kilian

unread,
Sep 19, 2019, 11:44:51 AM9/19/19
to mtex...@googlegroups.com
Hi Mirtunjay,

import your data (i.e. using loadOrientation_generic() ) such that you'll have orientations o and the same number of hardness data d.

One possibility:

h = project2FundamentalRegion(inv(o).*IPF_reference_direction);

contourf(h,d,'fundamentalRegion','inverseDistance')
%hold on
%plot(h,d,'fundamentalRegion') % just to see if your interpolation males sense
%hold off

For other interpolation methods see help vector3d/interp .

IPF_reference_direction is of type vector3d.

To determine min/max color range use the CLim function.

Hope that helps.

Cheers,
Rüdiger

Reply all
Reply to author
Forward
0 new messages