本文介绍了Gnuplot-Set色彩条Maxima和Minima的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在使用以下代码绘制此数据的热图

I am plotting heatmap of this data using the following code

reset
set terminal pngcairo size 800,800
set output 'Temp.png'
#set terminal tikz
#set output 'Temp.tex'
set lmargin at screen 0.05
set rmargin at screen 0.85
set bmargin at screen 0.1
set tmargin at screen 0.9
set palette defined ( 0 '#000090',\
                      1 '#000fff',\
                      2 '#0090ff',\
                      3 '#0fffee',\
                      4 '#90ff70',\
                      5 '#ffee00',\
                      6 '#ff7000',\
                      7 '#ee0000',\
                      8 '#7f0000')
set pm3d map interpolate 20,20
unset key
set multiplot

# plot the heatmap
splot '2m_p2_f36.txt' using 1:2:3

unset multiplot
unset output

我得到这样的结果我想手动设置颜色图的最大值和最小值.这是因为我必须绘制温度可高达1000 C的其他图.因此,我不希望红色在一个图中表示300 C,而在另一个图中表示1000C.我该如何做Gnuplot?

And I get a result like thisI would like to set the colormap maxima and minima manually. This is because I have to plot other plots where temperature can go upto 1000 C. So I don't want red colour indicating 300 C in one plot and 1000 C in another plot. How do I do this Gnuplot?

推荐答案

我找到了解决方案:使用以下命令

I found the solution:use the following command

set cbrange [MIN:MAX]

其中MIN和MAX应该是您要向颜色条指定的最小值和最大值

Where MIN and MAX should be the minimum and maximum value that you want to specify to the colorbar

这篇关于Gnuplot-Set色彩条Maxima和Minima的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 02:18