我希望绘制一张二维图,使用csplines插值来处理我的数据,并将独立变量放在y轴上。插值函数应该以x = f(y)的形式呈现。有没有不需要交换坐标轴就能实现这个功能的方法?
gnuplot:
set terminal svg size 400,300 enhanced fname 'arial' fsize 10 butt solid
set output 'out.svg'
set xrange [10:13]
plot "data.txt" using 2:1 notitle #smooth csplines
数据:
1 11.45294118
2 11.43529412
3 11.18823529
4 10.98235294
5 10.94117647
6 11.28823529
7 11.27058824