在gnuplot中将调色板颜色设置为蓝色 [英] set palette color to blue in gnuplot

查看:257
本文介绍了在gnuplot中将调色板颜色设置为蓝色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pm3dview map使用gnuplot获取contour映射 虽然其他一切都很好,但我无法将其转换为所需的颜色方案.

I am trying to get a contour map using gnuplot using pm3d and view map while everything else is fine, I cannot convert it to the colorscheme I want.

随附使用默认配色方案的当前图片.

The present picture, using default colour scheme is attached.

但是,如果我能在布鲁斯的棚子(从深蓝色到更浅)中使用它,那就太好了. 我试图按照此处的说明进行操作,但失败了. 请帮助.

But, it will be great if I can have it in Blues's sheds, from Dark Blue to lighter. I was trying to follow instruction given here, but failed. Kindly help.

推荐答案

如果您希望获得高度要求但受到批评(请参阅下面的链接),请 Matlab Jet色彩图,只需执行

If you want the highly requested but criticized (see links below) Matlab Jet colormap, just do:

f(x)=1.5-4*abs(x)
set palette model RGB
set palette functions f(gray-0.75),f(gray-0.5),f(gray-0.25)

我认为这比通常的方法要好:

Which, I think, is better than the usual way:

set palette defined ( 0 '#000090',\
                      1 '#000fff',\
                      2 '#0090ff',\
                      3 '#0fffee',\
                      4 '#90ff70',\
                      5 '#ffee00',\
                      6 '#ff7000',\
                      7 '#ee0000',\
                      8 '#7f0000')

有关更多信息,请参见关于调色板的联机帮助页

for more information, see the manpage for palette

  • The 'jet' colormap must die!
  • The ‘jet’ colormap, the default colormap in MATLAB, is a perceptual disaster
  • Rainbow Color Map (Still) Considered Harmful

这篇关于在gnuplot中将调色板颜色设置为蓝色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆