Gnuplot密度映射

时间:2018-05-31 06:26:35

标签: gnuplot gnuplot-iostream

我有一组带有x和y坐标的点。我想绘制特定区域中点的密度,输出类似于热图。是否可以使用gnuplot?

1 个答案:

答案 0 :(得分:0)

这可能不是最好的解决方案,但这是我过去常做的。

我希望你有数据文件data.dat,它有像

这样的数据条目
x       y       z
1.486   1.528   779666
1.487   1.528   673036
1.488   1.528   565025
.       .       .
.       .       .

现在使用以下命令绘图。

set hidden3d
set dgrid3d 50,50 qnorm 2
set view map
splot 'data_file' u 1:2:3 palette pt 5 ps 1.5

设置点大小 ps 以满足您的数据需求。