平滑图的边界 - gnuplot
Smoothing the boundary of graph - gnuplot
在 gnuplot 中,给定 f 和 g 两个从平面到实线的函数,我将在 g 获得正值时绘制 f。我有这个代码:
set xrange [-2:2]
set yrange [-2:2]
set isosamples 100,100
unset grid
unset key
set view map
f(x,y) = x*x*exp(-x*x)*y*y*exp(-y*y)
g(x,y) = x**2 - y**2
h(x,y) = g(x,y)> 0 ? f(x,y) : 1/0
splot h(x,y) with pm3d
我得到这个:
我想平滑这个图像的边界。
提前致谢
我想应该是 g(x,y) = x**2 - y**2
。使用参数 samples
和 isosamples
。检查 help samples
和 help isosamples
.
例如:
set samples 300
set isosamples 300
结果:
在 gnuplot 中,给定 f 和 g 两个从平面到实线的函数,我将在 g 获得正值时绘制 f。我有这个代码:
set xrange [-2:2]
set yrange [-2:2]
set isosamples 100,100
unset grid
unset key
set view map
f(x,y) = x*x*exp(-x*x)*y*y*exp(-y*y)
g(x,y) = x**2 - y**2
h(x,y) = g(x,y)> 0 ? f(x,y) : 1/0
splot h(x,y) with pm3d
我得到这个:
我想平滑这个图像的边界。
提前致谢
我想应该是 g(x,y) = x**2 - y**2
。使用参数 samples
和 isosamples
。检查 help samples
和 help isosamples
.
例如:
set samples 300
set isosamples 300
结果: