GNUPLOT:点集的二维直方图

发布于 2024-08-27 14:42:01 字数 671 浏览 4 评论 0原文

我有一对带有权重的点:

#x  y  w
0.111342 0.478917 0.232487 
0.398107 1.79559 0.221714 
0.200731 2.58651 0.0776068 
0.0967412 1.49904 0.0645355 
6.17638 8.63101 0.715604 
0.306128 3.10917 0.0984595 
0.340707 3.19344 0.10669 
7.18627 8.59859 0.835751 
8.56 9.63894 0.888065 
5.14272 6.86074 0.749587 
0.747202 3.812 0.196013 
8.71891 10.1355 0.860232 
0.346714 1.45895 0.237647 
5.21932 8.84491 0.590094 
9.42138 12.2082 0.771725 
0.215627 2.42317 0.0889856 

如何用颜色条绘制漂亮的二维直方图图像? 我发现了很好的 密度图 描述,但我不想通过Python。 我有办法只使用 gnuplot 脚本吗?

I have a pairs of the points with their weights:

#x  y  w
0.111342 0.478917 0.232487 
0.398107 1.79559 0.221714 
0.200731 2.58651 0.0776068 
0.0967412 1.49904 0.0645355 
6.17638 8.63101 0.715604 
0.306128 3.10917 0.0984595 
0.340707 3.19344 0.10669 
7.18627 8.59859 0.835751 
8.56 9.63894 0.888065 
5.14272 6.86074 0.749587 
0.747202 3.812 0.196013 
8.71891 10.1355 0.860232 
0.346714 1.45895 0.237647 
5.21932 8.84491 0.590094 
9.42138 12.2082 0.771725 
0.215627 2.42317 0.0889856 

How to plot nice 2d histogram image with color bar?
I found nice density map description but I don't wont to go via python.
I there way to use only gnuplot scripting?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如日中天 2024-09-03 14:42:02

最好使用外部直方图工具,但您可以通过以下方式在 gnuplot 中实现类似的功能:

set pm3d at b      # draw on bottom, not as 3d surface
set view map       # don't do a 3-d looking plot
set dgrid 100,100  # grid of 100x100 pixels
splot 'dat.txt' w pm3d

It's best to use an external histogramming tool, but you can achieve something similar in gnuplot via:

set pm3d at b      # draw on bottom, not as 3d surface
set view map       # don't do a 3-d looking plot
set dgrid 100,100  # grid of 100x100 pixels
splot 'dat.txt' w pm3d
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文