我创建了一个脚本:
f(x,y) = -(y+47)*sin(sqrt(abs(x/2+y+47)))-x*sin(sqrt(abs(x-y-47)))
set xrange[-512:512]
set yrange[-512:512]
set isosamples 100
unset key
set view 35,37
set terminal postscript eps enhanced color font 'Helvetica,10'
set output 'image.eps'
然而,当我运行命令:gnuplot filename
时,它会创建一个名为image.eps的图像,但它只是白色。如何获得图表的图像?
感谢。
答案 0 :(得分:0)
您必须使用plot
对2D进行实际绘图,或者就像您的情况一样使用splot
进行3D绘图。请注意,绘图必须仅在所有set
命令之后完成:
set terminal ...
set output ...
set ...
splot x**2 + y**2