你能告诉我们如何用一种颜色绘制3d图表,但要有阴影效果吗?
任何pm3d的使用都会根据z的值给出颜色,这是我不需要的,而且实际上(视觉上)不会给出阴影。
我想看到图表作为一个通常的三维模型(像往常的3d编辑器一样)。
现在我使用了一个我不满意的选项:
set hidden3d
set pm3d
set palette rgbformulae 22,13,-31
splot inputFullPath using 2:1:4 with pm3d notitle

我想看看这样的3d图:

发布于 2019-07-29 15:53:25
一个简单的3D照明模型与镜面高亮介绍了在gnuketVersion5.2。见help lighting。以下是文档中的一个段落和一个指向在线演示集的链接。
gnuplot> help lighting
By default the colors assigned to pm3d objects are not dependent on orientation
or viewing angle. This state corresponds to `set pm3d nolighting`.
The command `set pm3d lighting` selects a simple lighting model consisting of a
single fixed source of illumination contributing 50% of the overall lighting.
The strength of this light relative to the ambient illumination can be adjusted
by `set pm3d lighting primary <fraction>`. Inclusion of specular highlighting
can be adjusted by setting a fractional contribution:
set pm3d lighting primary 0.50 specular 0.0 # no highlights
set pm3d lighting primary 0.50 specular 0.6 # strong highlights

https://stackoverflow.com/questions/57251874
复制相似问题