Gnuplot 如何删除调色板颜色热图
如果要删除热图调色板(右侧的小矩形),是否可能 这是我的数据Gnuplot 如何删除调色板颜色热图,gnuplot,heatmap,Gnuplot,Heatmap,如果要删除热图调色板(右侧的小矩形),是否可能 这是我的数据 a b c 1 181 80 121 10 34 20 2 18 20 17 20 13 20 3 12 20 5 30 20 20 这是我的gnuplot脚本 set term pos eps font 20 unset key set nocbtics set palette rgbformulae -7, 2, -7 set title "Faults"
a b c
1 181 80 121 10 34 20
2 18 20 17 20 13 20
3 12 20 5 30 20 20
这是我的gnuplot脚本
set term pos eps font 20
unset key
set nocbtics
set palette rgbformulae -7, 2, -7
set title "Faults"
set size 1, 0.5
set output 'heatmap2.eps'
YTICS="`awk 'BEGIN{getline}{printf "%s ",$1}' 'data2.dat'`"
XTICS="`head -1 'data2.dat'`"
set for [i=1:words(XTICS)] xtics ( word(XTICS,i) i-1 )
set for [i=1:words(YTICS)] ytics ( word(YTICS,i) i-1 )
set for [i=1:words(XTICS)] xtics ( word(XTICS,i) 2*i-1 )
plot "<awk '{$1=\"\"}1' 'data2.dat' | sed '1 d'" matrix every 2::1 w image, \
'' matrix using ($1+1):2:(sprintf('%d', $3)) every 2 with labels
设置术语pos eps font 20
取消设置键
设置nocbtics
设置调色板RGB公式-7,2,-7
设置标题“故障”
设置大小1,0.5
设置输出“heatmap2.eps”
YTICS=“`awk'BEGIN{getline}{printf”%s“,$1}”data2.dat`”
XTICS=“`head-1'data2.dat'`”
设置为[i=1:words(XTICS)]XTICS(word(XTICS,i)i-1)
设置为[i=1:words(YTICS)]YTICS(word(YTICS,i)i-1)
设置为[i=1:words(XTICS)]XTICS(word(XTICS,i)2*i-1)
绘图“即颜色框
。只需使用
unset colorbox
删除它。谢谢@Christoph。回答得很好