带hidden3d的splot中的Gnuplot平滑等值线
这可能是gnuplot中的一个bug,我不确定。。。 似乎在带hidden3d的splot中的Gnuplot平滑等值线,gnuplot,Gnuplot,这可能是gnuplot中的一个bug,我不确定。。。 似乎在splot中激活hidden3d时,samples与isosamples匹配,即等值线变得锯齿状 我正在尝试创建以下绘图,但已激活hidden3d。 这是目前的结果: 问题: set key at screen 1, 0.9, 0 right top vertical Right noreverse enhanced autotitle nobox set style textbox opaque margins 0.5, 0.5
splot
中激活hidden3d
时,samples
与isosamples
匹配,即等值线变得锯齿状
我正在尝试创建以下绘图,但已激活hidden3d。
这是目前的结果:
问题:
set key at screen 1, 0.9, 0 right top vertical Right noreverse enhanced autotitle nobox
set style textbox opaque margins 0.5, 0.5 noborder
set view 60, 30, 1, 1.1
set samples 200, 200
set isosamples 51, 51
#set contour surface
set cntrlabel format '%8.3g' font ',7' start 5 interval 20
set cntrparam levels auto 10
set style data lines
set title "contour on sphere"
set xlabel "X axis"
set ylabel "Y axis"
set zlabel "Z "
set zlabel offset character 1, 0, 0 font "" textcolor lt -1 norotate
set parametric
set samples 1000, 1000
set isosamples 21, 11
set mapping spherical
set angles radians
r=1
set hidden3d
splot [-pi:pi][-pi/2:pi/2] r*cos(v)*cos(u),r*cos(v)*sin(u),r*sin(v) with lines lw 1.5 lt 1 lc rgb '#777777'
有没有办法使等值线再次平滑
脚本:
set key at screen 1, 0.9, 0 right top vertical Right noreverse enhanced autotitle nobox
set style textbox opaque margins 0.5, 0.5 noborder
set view 60, 30, 1, 1.1
set samples 200, 200
set isosamples 51, 51
#set contour surface
set cntrlabel format '%8.3g' font ',7' start 5 interval 20
set cntrparam levels auto 10
set style data lines
set title "contour on sphere"
set xlabel "X axis"
set ylabel "Y axis"
set zlabel "Z "
set zlabel offset character 1, 0, 0 font "" textcolor lt -1 norotate
set parametric
set samples 1000, 1000
set isosamples 21, 11
set mapping spherical
set angles radians
r=1
set hidden3d
splot [-pi:pi][-pi/2:pi/2] r*cos(v)*cos(u),r*cos(v)*sin(u),r*sin(v) with lines lw 1.5 lt 1 lc rgb '#777777'
我认为这是“hidden3d”帮助中的“功能”:“在等值线交点处对函数进行评估。在确定可见线段时,该算法在功能点或数据点之间进行线性插值。这意味着当使用hidden3d绘制时,函数的外观可能与使用nohidden3d绘制时有所不同,因为在后一种情况下,函数会在每个样本中进行计算。”我明白了。然后问题是,是否有比手动计算圆更简单的方法。可能最简单的解决方案是两个循环?