范学良的科学网博客分享 http://blog.sciencenet.cn/u/fanxueliang

博文

gnuplot与CIE1931 XYZ三刺激值曲线

已有 6250 次阅读 2014-8-7 13:22 |个人分类:gnuplot|系统分类:科研笔记| Gnuplot

数据文件: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




https://blog.sciencenet.cn/blog-373659-817773.html

上一篇:关于“谱色测温”的学术报告
下一篇:NO TITLE
收藏 IP: 49.73.189.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-10-19 22:32

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部