如何在Gnuplot的三维绘图中向二维曲线添加指定颜色?

如何在Gnuplot的三维绘图中向二维曲线添加指定颜色?,gnuplot,Gnuplot,我的工作代码如下: set term postscript eps enhanced color set output "C:\\Users\\cole1\\Desktop\\gnuplot_w1.eps" set multiplot set isosamples 140 unset key set title "r" set xrange [-6:6] set yrange [-6:6] set zrange [-4:4] set hidden3d nooffset # set style a

我的工作代码如下:

set term postscript eps enhanced color
set output "C:\\Users\\cole1\\Desktop\\gnuplot_w1.eps"
set multiplot
set isosamples 140
unset key
set title "r"
set xrange [-6:6]
set yrange [-6:6]
set zrange [-4:4]
set hidden3d nooffset
# set style arrow 1 lw 2 head filled size 0.1,20,70
unset key
# set ztics 1
set view 69,120 #Done implicitly by mousing.
# set arrow 1 nohead from 0,0,0 to 0,0,4.0 as 1 back
# set arrow 2 nohead from 0,0,0 to 0,4.5,0 as 1 back
# set arrow 3 nohead from 0,0,0 to 4.5,0,0 as 1 back
splot (x**2+y**2+1)**(0.5),-(x**2+y**2+1)**(0.5)
# set arrow 4 nohead from 0,0,2.5 to 0,0,4.0 as 1 front
unset xtics 
unset ytics 
unset ztics  
set parametric
set samples 1000
plot 0.1*sin(25*t)-1,0.1*cos(25*t)-0.5 lw 1
plot 0.06*sin(25*t)-1.25,0.06*cos(25*t)+2.75 lw 3
unset xtics 
unset ytics 
unset multiplot
然后,我尝试将第一条曲线(上面最后第五条线)更改为绿色,以使第一条曲线显示为绿色


它给了我一个
无效命令
错误。如何解决此问题?

您需要使用
linecolor
命令

plot 0.1*sin(25*t)-1,0.1*cos(25*t)-0.5 lw 1 lc rgb "green"
plot 0.1*sin(25*t)-1,0.1*cos(25*t)-0.5 lw 1 lc rgb "green"