Splot分以上的gnuplot的pm3d面 [英] Splot points over pm3d surface in gnuplot

查看:307
本文介绍了Splot分以上的gnuplot的pm3d面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用绘制的gnuplot在参数模式下的球体。我想从一个文件绘制三维数据,这将环绕球体。看来,点重叠球体被隐藏,即使它们应该在形状的前面。

I have plotted a sphere using gnuplot in parametric mode. I am trying to plot 3d data from a file, which will surround the sphere. It seems that the points with overlap with the sphere are hidden even though they should be in front of the shape.

下面是我的脚本:

unset border
unset colorbox
unset key
unset tics

set view equal
set isosamples 64

set pm3d depthorder interpolate 0,0
set palette rgb 3,3,3

set parametric
r = 19

splot 'saturn.txt' linecolor rgb 'black', \
r*sin(u)*cos(v) + 40, r*sin(u)*sin(v) + 40, r * cos(u) + 40.5 w pm3d

下面是数据文件,saturn.txt对引擎收录

图片列出了我的问题。左边是全套绘制无球的数据。在中间,可以看出,有分来自在球的前丢失。右侧的视图示出,这些点是肯定在球的前面。有没有什么办法可以在球的前面绘制都在同一时间没有点被隐藏?

Here is the data file, saturn.txt on pastebin

The image below shows my problem. On the left is the full set of data plotted without the sphere. In the middle it can be seen that there are points missing from in front of the sphere. The view on the right shows that these points are definitely in front of the sphere. Is there any way I can plot both at the same time without the points in front of the sphere being hidden?

推荐答案

我找到了答案,在这gnuplotting文章

set hidden3d front

到底为什么的作品是一个谜给我。我找不到相关的关于它的gnuplot的手动什么。

Why exactly that works is a mystery to me. I couldn't find anything relevant in the gnuplot manual about it.

下面是最后的情节:

Here's the final plot:

这篇关于Splot分以上的gnuplot的pm3d面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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