2016-04-27 104 views
2

在將多重我繪製3個地圖具有不同調色板顏色(見下面的代碼)。 我想在我的multiplot另外三個人的總和的第四方,即紅色部分,藍色部分,綠色部分和紅色+藍+綠視15列14的值和16薩姆調色板pm3d

的組合
set view map; set size square 
set xlabel "delta mu Al" 
set ylabel "delta mu Mn" 
set zlabel "fraction atomique" 

set multiplot layout 2,2 
set title "Fer" 
set palette defined (0 "white", 1 "red") 
splot "res700.dat" u 3:4:($16/3456) t "Fe" with pm3d 

set title "Alu" 
set palette defined (0 "white", 1 "green") 
splot "res700.dat" u 3:4:($14/3456) t "Fe" with pm3d 

set title "Mn" 
set palette defined (0 "white", 1 "blue") 
splot "res700.dat" u 3:4:($15/3456) t "Fe" with pm3d 

unset multiplot 

回答

2

使用rgb variable。隨着黑色爲無信號的顏色,這給:

set view map; set size square 
set xlabel "delta mu Al" 
set ylabel "delta mu Mn" 
set zlabel "fraction atomique" 

set isosample 100 
Fe(x,y)=x*y 
Al(x,y)=(1-x)*y 
Mn(x,y)=x*(1-y) 

set multiplot layout 2,2 
set title "Fer" 
set palette defined (0 "black", 1 "red") 
splot [0:1][0:1] "++" u 1:2:(Fe($1,$2)) t "Fe" with pm3d 

set title "Alu" 
set palette defined (0 "black", 1 "green") 
splot [0:1][0:1] "++" u 1:2:(Al($1,$2)) t "Al" with pm3d 

set title "Mn" 
set palette defined (0 "black", 1 "blue") 
splot [0:1][0:1] "++" u 1:2:(Mn($1,$2)) t "Mn" with pm3d 

set title "" 
rgb(r,g,b) = 65536 * int(255*r) + 256 * int(255*g) + int(255*b) 
unset colorbox 
splot [0:1][0:1] "++" u 1:2:(rgb(Fe($1,$2),Al($1,$2),Mn($1,$2))) t "" with pm3d lc rgb variable 

unset multiplot 

enter image description here

+0

我想潔白無信號。因此,我改變了'rgb'函數爲:'RGB(R,G,B)= 65536 * INT(255 * R)+ 256 * INT(255 * G)+ INT(255 * B)' –

+0

您unsetted顏色酒吧。是否可以畫一個三角形:標記爲「費爾」,一個綠色的角落爲「鋁」,最後一個是「錳」紅色角落? –

+1

是的,你可以創建一個作爲的multiplot中的一個單獨的情節,其座標應該明確輸入。我認爲,爲了清楚起見,如果您需要此方面的幫助,您應該另外提問。 – Joce