gpt4 book ai didi

gnuplot - 平滑图形的边界 - gnuplot

转载 作者:行者123 更新时间:2023-12-04 09:31:12 25 4
gpt4 key购买 nike

在 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

我得到这个:
enter image description here
我想平滑这个图像的边界。
提前致谢

最佳答案

我认为它应该是 g(x,y) = x**2 - y**2 .玩转参数samplesisosamples .查询 help sampleshelp isosamples .
例如:

set samples 300
set isosamples 300
结果:
enter image description here

关于gnuplot - 平滑图形的边界 - gnuplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62838429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com