我有一个工作代码如下:
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
然后,我尝试通过将那条线(上面的第五条线)更改为绿色来使第一条曲线显示为绿色。
plot 0.1*sin(25*t)-1,0.1*cos(25*t)-0.5 lw 1 ; rgb "green"
这给了我一个invalid command
错误。我怎么解决这个问题?
您需要使用linecolor
命令
plot 0.1*sin(25*t)-1,0.1*cos(25*t)-0.5 lw 1 lc rgb "green"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句