【问题标题】:Gnuplot-Set colorbar Maxima and MinimaGnuplot-Set colorbar 最大值和最小值
【发布时间】:2016-10-22 05:11:45
【问题描述】:

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

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 摄氏度的其他地块。所以我不希望红色在一个地块中表示 300 摄氏度,而在另一个地块中表示 1000 摄氏度。我该如何做这个 Gnuplot?

【问题讨论】:

    标签: gnuplot colorbar


    【解决方案1】:

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

    set cbrange [MIN:MAX]
    

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

    【讨论】:

      猜你喜欢
      • 2015-07-19
      • 2018-03-05
      • 2023-04-02
      • 1970-01-01
      • 2012-09-16
      • 2016-04-10
      相关资源
      最近更新 更多