使用 Gnuplot (splot + hide3d) 绘制 3D 曲面会破坏边缘

问题描述 投票:0回答:1

我从事空气动力学稳定性分析工作,我想创建一个通用脚本来绘制我的特征向量。我正在绘制 3D 表面,我的数据是有序的多域网格。我按照 Gnuplot 书中规定的格式将数据存储在 dat 文件中。到目前为止,我还没有遇到问题,但是应用“set hide3d”后我的绘图在绘图表面的边缘失去了斑点。

使用的脚本:

set term aqua
# Axis Ranges
# -------------
#set xrange []
set yrange [0:10]
#set zrange []

set hidden3d offset 0 # surface transparence(not see through) - offset 0 -> no color difference between upper and lower surface
set contour
set cntrparam level 10 # Number of contour levels
set cntrlabel onecolor # Colormap of contours

set xtics font "Times-Roman, 22"
set ytics font "Times-Roman, 22"
set ztics font "Times-Roman, 22"

set xlabel "Z-Axis" offset -0.1,1 font "Times-Roman,22" rotate by 0 # offset <x,y>
set ylabel "Y-Axis" offset 0.1,1 font "Times-Roman,22" rotate by 0 # offset <x,y>
set zlabel "X-Axis" offset -0.1,1 font "Times-Roman,22" rotate by 90 # offset <x,y>

splot 'mode.csv' w l linetype -1 notitle

Plot without

Plot with

gnuplot surface
1个回答
0
投票

根据这两个图像的视觉比较,我认为相关差异不是隐藏的/不隐藏的。看来样本和/或 isosamples 的设置已更改,并且“无隐藏3d”中的更精细采样导致它渲染在其他图中未采样的边缘。

© www.soinside.com 2019 - 2024. All rights reserved.