Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gnuplot-xrange的设置_Gnuplot - Fatal编程技术网

Gnuplot-xrange的设置

Gnuplot-xrange的设置,gnuplot,Gnuplot,如何设置此x范围,请将函数g(x)视为高斯函数?多谢各位 c = 299792458 kB = 1.380649*10**(-23) T = 10000 m_he = 6.64424*10**(-27) nun_he = 4.55746e+14 nuth_he = (2*kB*T/m_he)**(0.5) konst2 = 11e+12 g(x) = 1-konst2/((pi)**(0.5)*(nuth_he))*exp(-((x-nun_he)**2)/(nuth_he**2)) set

如何设置此x范围,请将函数g(x)视为高斯函数?多谢各位

c = 299792458
kB = 1.380649*10**(-23)
T = 10000
m_he = 6.64424*10**(-27)
nun_he = 4.55746e+14
nuth_he = (2*kB*T/m_he)**(0.5)
konst2 = 11e+12

g(x) = 1-konst2/((pi)**(0.5)*(nuth_he))*exp(-((x-nun_he)**2)/(nuth_he**2))

set xtics rotate by -90

set term pngcairo size 800,1200 enhanced font "Segoe UI,18"
set output "out.png"

set format y "%4.2sx10^{%T}"       
x0=4.55746e+14
set xrange [x0-0.00001e+14:x0+0.00001e+14]
plot g(x) with lines lw 2.5 linecolor rgb "medium-blue", "<echo '4.55746e+14 1'" with points ls 7 ps 2
c=299792458
kB=1.380649*10**(-23)
T=10000
m_he=6.64424*10**(-27)
努厄河=4.55746e+14
nuth_he=(2*kB*T/m_he)**(0.5)
konst2=11e+12
g(x)=1-konst2/((pi)**(0.5)*(nuth_-he))*exp(((x-nun_-he)**2)/(nuth_-he**2))
将XTIC旋转设置为-90
设置术语pngcairo大小8001200增强字体“Segoe UI,18”
设置输出“out.png”
设置格式y“%4.2sx10^{%T}”
x0=4.55746e+14
设置X范围[x0-0.00001e+14:x0+0.00001e+14]

用lw 2.5 linecolor rgb“中蓝色”绘制g(x),“请检查该图形的基础知识。 基本上,系数
σ
决定了峰值的宽度(在您的例子中
nuth_he
)。 因此,如果您选择范围,例如
x0-3σ
x0+3σ
,您应该可以很好地看到您的曲线

x0=4.55746e+14
set xrange [x0-nuth_he*3:x0+nuth_he*3]
然而,这应该是什么呢

"<echo '4.55746e+14 1'" with points ls 7 ps 2

“单个点,例如坐标
0,0
处,也可以放置为标签<代码>将标签1设置为0,0点pt 7 ps 2 lc rgb“红色”
。当然是在plot命令之前。检查帮助标签