GNUplot 代码札记

来源:互联网 发布:弹指神功打字软件 编辑:程序博客网 时间:2024/06/06 02:24

1. 三维散点图

set term postscript enh solid color 

set output "skin.eps"   //输出图像
set grid x y z          //网格
set ytics nomirror
unset y2tics
set xtics nomirror
unset x2tics
set ticslevel 0.1
set ztics mirror     // 去除xyz轴的刻度
set zrange [0:260]
set xrange [40:180]
set yrange [50:250] 
set key left box    //设置key,放于左边,加外框
set ztics 20
set xtics out
set ytics out         //刻度向外
#set border 1+2+4+8+16+32+64+256+512 lt -1
set border 1+4+16+64+128+256+512+1024+2048 lt -1       //设置边界线的类型
set xlabel 'Cb'
set ylabel 'Cr' 
set zlabel 'Y'          //轴名称
splot 'America.dat' u 2:3:1 title 'America' w p pt 29 ps 0.05, 'Africa.dat' u 2:3:1 title 'Africa' w p pt 30 ps 0.1, 'ASIA.dat' u 2:3:1 title 'Asia' w p pt 82 ps 0.3       //打数据点(三维图)

#splot '4.dat' u 2:3:1 title 'Asia' w p pt 82 ps 0.3


原创粉丝点击