gnuplot: 3D plot of a matrix of data

前端 未结 2 978
[愿得一人]
[愿得一人] 2020-12-06 18:18

How can I plot (a 3D plot) a matrix in Gnuplot having such data structure, using the first row and column as a x and y ticks (the first number of the first row is the number

2条回答
  •  我在风中等你
    2020-12-06 19:01

    Exactly this data format can be read in with matrix nonuniform:

    set view 50,20
    set ticslevel 0
    splot 'data.txt' matrix nonuniform with lines t ''
    

    This generates the correct tics, like specified in the data file:

    enter image description here

提交回复
热议问题