|||
数据文件:XYZ1931.dat
1、直接生成PNG文件
gunplot script:
gnuplot> set term pngcairo
Terminal type set to 'pngcairo'
Options are ' background "#ffffff" fontscale 1.0 size 640, 480 linewidth 2'
gnuplot> set output 'XYZ1931.png'
gnuplot> set xlabel 'Wavelength(nm)'
gnuplot> set ylabel 'Tristimulus values'
gnuplot> plot "XYZ1931.dat" using 1:2 w l t 'X',
>"XYZ1931.dat" using 1:3 w l t 'Y',
>"XYZ1931.dat" using 1:4 w l t 'Z'
gnuplot> set output
gnuplot> set term wxt
----
生成图像
2、输出epslatex-->编译生成--->ps---->pdf
gnuplot script:
gnuplot> set term epslatex
gnuplot> set output 'XYZ1931.tex'
gnuplot> set xlabel 'Wavelength(nm)'
gnuplot> set ylabel 'Tristimulus values'
gnuplot> plot "XYZ1931.dat" using 1:2 w l t '$\bar{x}(\lambda)$',\
>"XYZ1931.dat" using 1:3 w l t '$\bar{y}(\lambda)$',\
>"XYZ1931.dat" using 1:4 w l t '$\bar{z}(\lambda)$'
gnuplot> set output
生成图像:
pdf格式格式图片:XYZ1931.pdf
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-19 22:32
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社