Gnuplot x(y)平滑
如何平滑表格x(y)中显示的数据?的Gnuplot平滑函数处理此类情况无效Gnuplot x(y)平滑,gnuplot,smooth,Gnuplot,Smooth,如何平滑表格x(y)中显示的数据?的Gnuplot平滑函数处理此类情况无效 例如: 文件(T-L.dat): Gnuplot会话: knkd@SCP71:~/MEAS/HEAT$ gnuplot G N U P L O T Version 4.6 patchlevel 4 last modified 2013-10-02 Build System: Linux x86_64 Copyright (C) 1986-19
例如: 文件(T-L.dat): Gnuplot会话:
knkd@SCP71:~/MEAS/HEAT$ gnuplot
G N U P L O T
Version 4.6 patchlevel 4 last modified 2013-10-02
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'wxt'
gnuplot> plot "T-L.dat" with lines
添加平滑:
gnuplot> plot "T-L.dat" with lines smooth csplines
结果不太好(只有2个链接,对不起)
其他特性也没有给出我想要的结果。
但是我真的需要样条线。正确,gnuplot只能使用
y(x)
形式的样条线数据进行平滑。为此,数据在平滑之前在x中呈现单调。数据相对于y是对称的,这就是为什么平滑后会得到一条直线
为了平滑与y
相关的数据,必须首先交换轴并将平滑结果保存到临时文件中。然后使用正确的轴选择进行打印:
set table 'T-L-smoothed.dat'
plot 'T-L.dat' using 2:1 smooth csplines
unset table
plot 'T-L-smoothed.dat' using 2:1 with lines, 'T-L.dat' with points pt 7
您能多花点时间问个问题吗?是要将抛物线拟合到一组数据点,还是只绘制抛物线?那么,您的代码中有哪些部分不起作用?
set table 'T-L-smoothed.dat'
plot 'T-L.dat' using 2:1 smooth csplines
unset table
plot 'T-L-smoothed.dat' using 2:1 with lines, 'T-L.dat' with points pt 7