Gnuplot使用hidden3d在splot中平滑等值线

时间:2016-09-27 16:46:51

标签: gnuplot

这可能是gnuplot中的一个错误,我不确定...... 似乎在hidden3d中激活了splotsamplesisosamples匹配,即等值线变为锯齿状

我正在尝试创建以下图表,但已激活hidden3d。 Smooth isolines on a sphere 这是目前的结果: Sphere isolines with hidden3d

问题

有没有办法让isolines再次平滑?

剧本

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'

0 个答案:

没有答案