gnuplot - Gnuplot 密度映射
问题描述
我有一组带有 x 和 y 坐标的点。我想绘制特定区域中点的密度,输出类似于热图。可以使用gnuplot吗?
解决方案
这可能不是最好的解决方案,但这是我以前做的。
我希望你有数据文件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
满足您的数据需求。
推荐阅读
- fpga - 一旦模块不需要 BRAM,如何重用它?
- reactjs - 如何在反应中只给地图的第一个结果提供道具?
- javascript - 在 JSON 对象中连接设备读数 - Javascript
- nestjs - NestJs 中存在一些类似于 express-async-errors 的东西,以使我们免于在每个异步函数中编写 try catch 吗?
- java - 通过 contentobserver 添加/删除/编辑联系人时通知我的应用
- appium - 如何定位/访问小吃店元素?我找不到小吃店的定位器
- c++ - 如何在 VS 2017 中添加带有“快速操作和重构”的静态函数声明?
- observable - 自定义 RxJava Observable 在订阅时不发出任何内容
- python - Python if-else 说明
- python - 网页涂鸦 - 使用 Python 抓取关键字并制作列表