用 pm3d 求和调色板
Sum palette with pm3d
在多图中,我绘制了 3 张具有不同调色板颜色的地图(请参见下面的代码)。
我想要在我的多图的第四个方块中其他三个的总和,即红色部分、蓝色部分、绿色部分,以及红色+蓝色+绿色的组合,具体取决于第 14、15 和 16 列的值。
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:(/3456) t "Fe" with pm3d
set title "Alu"
set palette defined (0 "white", 1 "green")
splot "res700.dat" u 3:4:(/3456) t "Fe" with pm3d
set title "Mn"
set palette defined (0 "white", 1 "blue")
splot "res700.dat" u 3:4:(/3456) t "Fe" with pm3d
unset multiplot
使用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(,)) t "Fe" with pm3d
set title "Alu"
set palette defined (0 "black", 1 "green")
splot [0:1][0:1] "++" u 1:2:(Al(,)) t "Al" with pm3d
set title "Mn"
set palette defined (0 "black", 1 "blue")
splot [0:1][0:1] "++" u 1:2:(Mn(,)) 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(,),Al(,),Mn(,))) t "" with pm3d lc rgb variable
unset multiplot
在多图中,我绘制了 3 张具有不同调色板颜色的地图(请参见下面的代码)。 我想要在我的多图的第四个方块中其他三个的总和,即红色部分、蓝色部分、绿色部分,以及红色+蓝色+绿色的组合,具体取决于第 14、15 和 16 列的值。
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:(/3456) t "Fe" with pm3d
set title "Alu"
set palette defined (0 "white", 1 "green")
splot "res700.dat" u 3:4:(/3456) t "Fe" with pm3d
set title "Mn"
set palette defined (0 "white", 1 "blue")
splot "res700.dat" u 3:4:(/3456) t "Fe" with pm3d
unset multiplot
使用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(,)) t "Fe" with pm3d
set title "Alu"
set palette defined (0 "black", 1 "green")
splot [0:1][0:1] "++" u 1:2:(Al(,)) t "Al" with pm3d
set title "Mn"
set palette defined (0 "black", 1 "blue")
splot [0:1][0:1] "++" u 1:2:(Mn(,)) 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(,),Al(,),Mn(,))) t "" with pm3d lc rgb variable
unset multiplot