2
我想繪製一個基於ab-initio能量輸入的三元相圖。在那裏,我發現了一個有用的工具,它可以幫助我:使用MATLAB繪製三元相圖
https://de.mathworks.com/matlabcentral/fileexchange/2299-alchemyst-ternplot
有幾個問題我需要改變:
我喜歡看到我的輸入階段「名稱標籤」上情節,我在哪裏輸入數據中的座標。 (不僅僅是單獨的數字中的藍點)
我在terndemo.m中輸入了正能量值,如下所示。儘管如此,它們實際上是負值,當我輸入負值時表面沒有正確顯示。
我需要給熱譜的標籤?
最後,我的軸標籤沒有開始正確。例如0不在三角形的邊緣點。
我還附上了關於該圖的所有問題。
有人可以對這個問題提出一些意見嗎?
---這是我demotern.m輸入:
%% Ti Ce Fe
% Name of the phases in coordinates below: Ti, Ce, Fe, FeTi, Fe2Ti,
% CeFe2,CeFe5, Ce2Fe17 and CeFe11Ti
experimental = [...
1.000 0.000 0.000
0.000 1.000 0.000
0.000 0.000 1.000
0.500 0.000 0.500
0.340 0.000 0.660
0.000 0.340 0.660
0.000 0.160 0.840
0.000 0.110 0.890
0.0765 0.0765 0.847
];
% data values are actually negative, here I enter positive value
data = [...
0.0
0.0
0.0
0.419
0.273
0.090
0.014
0.010
0.068
];
A = experimental(:, 1)';
B = experimental(:, 2)';
C = 1 - (A + B);
figure
subplot(2, 2, 1)
ternplot(A, B, C, '.'); ternlabel('Content of Titanium', 'Content of Cerium', 'Content of Iron');
subplot(2, 2, 2)
ternpcolor(A, B, data); ternlabel('Content of Titainum', 'Content of Cerium', 'Content of Iron');
shading interp
subplot(2, 2, 3)
terncontour(A, B, data); ternlabel('Content of Titanim', 'Content of Cerium', 'Content of Iron');
subplot(2, 2, 4)
ternsurf(A, B, data);
我的答案中有什麼不是你需要的嗎? – chthonicdaemon