cie1931 python绘制_科学网—gnuplot与CIE1931 XYZ三刺激值曲线 - 范学良的博文

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

----

生成图像

6121700a28ae75afd438a1a073770dc4.png

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

生成图像:

d1c4c9d75c2fc49f2cc8e142bb2ce8d0.png

转载本文请联系原作者获取授权,同时请注明本文来自范学良科学网博客。

链接地址:http://blog.sciencenet.cn/blog-373659-817773.html

上一篇:关于“谱色测温”的学术报告

下一篇:NO TITLE

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值