如何在gnuplot中的2D热图上标记一些点? [英] How to mark some points on 2D heat map in gnuplot?

查看:69
本文介绍了如何在gnuplot中的2D热图上标记一些点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用简单的方案从我的数据中绘制2D热图:

I am using simple scheme for plot 2D heat map from my data like this:

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

现在,我需要在此数据上标记一些点,也许用白色标记.我尝试这样做:

Now i need to mark few points on this data, maybe with white color. I tried to do:

splot "file"; plot "points"

它不起作用并写道:不能将pm3d用于2d图".

and it's not working and writes: "Can't use pm3d for 2d plots".

推荐答案

文件是什么样的?您可以这样做:

What does the file look like? You can do:

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

根据'points'的外观,您可能需要添加一个使用规范:

depending on what 'points' looks like though, you might need to add a using specification:

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

这篇关于如何在gnuplot中的2D热图上标记一些点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆