set palette color to blue in gnuplot

孤人 提交于 2019-12-24 03:19:04

问题


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.


回答1:


See the gnuplot documentation about set palette:

set palette defined (0 'dark-blue', 1 'light-blue')
test palette

or

set palette defined (0 '#0000bb', 1 '#8888ff')



回答2:


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


来源:https://stackoverflow.com/questions/20285532/set-palette-color-to-blue-in-gnuplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!