gnuplot矩阵热图图翻转

时间:2018-08-15 09:14:14

标签: plot gnuplot gnuplot-iostream

情节发生

set terminal png
set output 'plot.png'
plot 'matrix.txt' matrix with image

  9  3  3  4
  3  1  1  7
  8  9  1  8
  7  3  9  5

我明白了

enter image description here

看到了,它旋转/翻转。如何使其与数据对齐?

我找到了Rotating a plot in gnuplot,但解决方案在这里不适用。

1 个答案:

答案 0 :(得分:0)

您是在问如何反转y轴的方向吗?

set yrange [*:*] reverse
plot 'matrix.txt' matrix with image

或者如果您想反转矩阵的y坐标,但保持其他绘图元素的方向不变

plot 'matrix.txt' using ($1):(-$2):($3) matrix with image
相关问题