Gnuplot: how to write the z values in a heatmap plot

北城以北 提交于 2019-12-06 04:26:53
Christoph

You can use the labels plotting style for this. See also gnuplot matrix or plot : display both color and point value for a very similar question:

unset key
set palette rgbformula -7,2,-7
set cbrange [0:5]
set cblabel "Score"
unset cbtics
set autoscale fix

plot '-' using 1:2:3 with image, \
     '-' using 1:2:(strcol(3)) with labels
0 0 5
0 1 4

1 0 2
1 1 2
e
0 0 5
0 1 4

1 0 2
1 1 2
e

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