gnuplot的:使表面的情节只有一个边框较厚

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

所以我想要绘制在这样的第一象限的三维球 -

enter image description here

我要让行BC厚/加粗从休息。我怎么做?

这是我的gnuplot脚本:

set term wxt 0
set parametric
set urange[0:0.5 * pi]
set vrange[0:0.5 * pi]
r = 1
fx(v,u) = r * cos(v) * cos(u)
fy(v,u) = r * sin(u) * cos(v)
fz(v) = r * sin(v)
set label 1 "A" font "Arial, 15" front at 0.000, 0.900, -0.050 
set label 2 "B" font "Arial, 15" front at 0.050, 0.000, 0.900
set label 3 "C" font "Arial, 15" front at 1.050, 0.105, 0.000
set pm3d depthorder border linetype 1 linewidth 0.50
set style fill transparent solid 0.50 border
set palette
set hidden3d
unset colorbox
splot fx(u,v), fy(u,v), fz(u) w pm3d, \
    "< echo '0.000 0.000 1.000'" with points pt 7 ps 0.75 lc rgb 'black', \
    "< echo '0.000 1.000 0.000'" with points pt 7 ps 0.75 lc rgb 'black', \
    "< echo '1.000 0.000 0.000'" with points pt 7 ps 0.75 lc rgb 'black'
set term push
set term pdf enhanced mono
set output "b1.pdf"
replot
unset output
set term pop
system(sprintf("%s", "pdfcrop b1.pdf b1.pdf"))
gnuplot border surface
1个回答
2
投票

好了,简单地绘制线B,C再次with lines

什么是此行参数表示? fx(u,0), fy(0,0), fz(u)

splot fx(u,v), fy(u,v), fz(u) w pm3d, \
    fx(u,0), fy(0,0), fz(u) w l lw 3 lc rgb "red"

它给你这样的事情......(当然,不同的终端...)

enter image description here

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