我需要在这个xyz数据文件上创建一个颜色图(热图)。
16.4645 -8.19898 -12.8904
-15.8086 -14.2834 8.16466
-22.1801 0.829724 -12.9072
-23.2899 -0.766454 -0.856553
-9.70407 -9.05421 18.1793
-20.7488 10.0369 6.15957
-22.0808 11.1614 -3.49831
-6.04398 -22.1432 -11.1618
-6.34688 -22.8299 7.09053
-4.06349 -12.694 -20.75
-12.3437 8.67375 -16.5742
问题是,当我使用
时plot "lastframe.dat" using 1:2:3 with image t ''
我收到以下错误
warning: Number of pixels cannot be factored into integers matching grid. N = 60 K = 25
warning: Number of pixels cannot be factored into integers matching grid. N = 60 K = 25
有没有办法使用pm3d进行绘图并获得彩色图?
答案 0 :(得分:2)
要使用pm3d获取色彩映射,请尝试以下方法:
set pm3d map
set dgrid3d
splot "lastframe.dat" using 1:2:3
查看http://lowrank.net/gnuplot/plot3d-e.html了解有用的提示和技巧。