【问题标题】:How to mark some points on 2D heat map in gnuplot?如何在 gnuplot 的 2D 热图上标记一些点?
【发布时间】:2012-10-28 23:56:01
【问题描述】:

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

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

现在我需要在这个数据上标记几个点,也许用白色。我试着做:

splot "file"; plot "points"

它不起作用并写道:“不能将 pm3d 用于 2d 绘图”。

【问题讨论】:

    标签: gnuplot heatmap


    【解决方案1】:

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

    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"
    

    【讨论】:

    • 非常感谢,有帮助!我的文件看起来像 x y z 其中 z 是一种颜色,在我的情况下是磁场幅度
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-04
    • 1970-01-01
    • 2019-02-14
    • 2021-11-03
    相关资源
    最近更新 更多