2012-10-28 40 views
2

我使用简单的方案为情节2D热图从我的数据是这样的:如何标记gnuplot中的2D热图上的某些点?

set pm3d map 
set pm3d interpolation 5,5 
splot "file" 

现在我需要在这个数据标记几点,也许有白色。我试图做的:

splot "file"; plot "points" 

它不工作,并写道:“不能使用pm3d 2d图”。

回答

3

该文件是什么样子的?你可以这样做:

splot 'file' with pm3d, 'points' with points linecolor rgb "white" 

取决于什么'points'看起来不过,你可能需要添加一个使用规范:

splot 'file' with pm3d, 'points' using 1:2:(0.0) with points linecolor rgb "white" 
+0

谢谢了很多,它帮助! 我的文件看起来像 x y z 其中z是一种颜色,在我的情况下,磁场振幅 – Alej