Gnuplot pm3d not plotting all data

前端 未结 1 561
庸人自扰
庸人自扰 2021-01-22 15:04

I have a text file that looks like this:

0 0 1
0 1 -1

1 0 -1
1 1 1

I\'m plotting this with pm3d with the number of colours in the

1条回答
  •  不知归路
    2021-01-22 15:16

    The pm3d option is averaging your z value between the points that you have defined, this is standard and I am not sure it can be changed without formatting your data. What you can do is to unset the pm3d option and plot with the with image style. I actually find this preferable because the figures produced are of much smaller size (byte-wise speaking).

    With your set of data:

    plot "data" with image
    

    Yields what you want: enter image description here

    0 讨论(0)
提交回复
热议问题