我正在使用我编写的 .plt 文件访问来自许多不同文件的数据。只有每个数据集的特定域是重要的。我试图仅将每个数据集的特定域绘制到一个图表上。
每个域中的数据对应一个峰值。我想绘制每个峰值,然后将指数衰减函数拟合到峰值。
这是我的绘图文件中的代码:
set xlabel "Time (ms)"
set ylabel "voltage"
set title "T1 time for Isopropyl Alcohol"
dir='C:\Users\Daniel\Desktop\College\modern lab\gp501-win64-mingw\gnuplot\bin\data files\isoproply_alc_t1\'
unset key
set style data linespoints
x(v, left, right) = (v >= left && v <= right ? v : 1/0)
plot dir.'nmr-t1-isopropyl-dt10' using (x($0*0.01, 3, 7)):1, \
dir.'nmr-t1-isopropyl-dt50' using (x($0*0.01, 20, 40)):1, \
dir.'nmr-t1-isopropyl-dt100' using (x($0*0.01, 40, 60)):1, \
dir.'nmr-t1-isopropyl-dt150' using (x($0*0.01, 70, 80)):1, \
dir.'nmr-t1-isopropyl-dt200' using (x($0*0.01, 99, 101)):1, \
dir.'nmr-t1-isopropyl-dt230' using (x($0*0.01, 114, 116)):1, \
dir.'nmr-t1-isopropyl-dt250' using (x($0*0.01, 124, 126)):1, \
dir.'nmr-t1-isopropyl-dt270' using (x($0*0.01, 134, 136)):1, \
dir.'nmr-t1-isopropyl-dt290' using (x($0*0.01, 144, 146)):1, \
dir.'nmr-t1-isopropyl-dt300' using (x($0*0.01, 149, 151)):1, \
dir.'nmr-t1-isopropyl-dt320' using (x($0*0.01, 159, 161)):1, \
dir.'nmr-t1-isopropyl-dt340' using (x($0*0.01, 169, 171)):1, \
dir.'nmr-t1-isopropyl-dt360' using (x($0*0.01, 178, 183)):1, \
dir.'nmr-t1-isopropyl-dt400' using (x($0*0.01, 198, 201)):1, \
dir.'nmr-t1-isopropyl-dt430' using (x($0*0.01, 213, 217)):1, \
dir.'nmr-t1-isopropyl-dt470' using (x($0*0.01, 233, 236)):1, \
dir.'nmr-t1-isopropyl-dt580' using (x($0*0.01, 289, 291)):1, \
dir.'nmr-t1-isopropyl-dt620' using (x($0*0.01, 309, 311)):1, \
dir.'nmr-t1-isopropyl-dt650' using (x($0*0.01, 324, 326)):1, \
dir.'nmr-t1-isopropyl-dt700' using (x($0*0.01, 348, 352)):1, \
dir.'nmr-t1-isopropyl-dt750' using (x($0*0.01, 374, 376)):1, \
dir.'nmr-t1-isopropyl-dt800' using (x($0*0.01, 399, 401)):1, \
dir.'nmr-t1-isopropyl-dt850' using (x($0*0.01, 424, 426)):1, \
dir.'nmr-t1-isopropyl-dt900.2' using (x($0*0.01, 449.5, 451)):1
这给出了正确的域。
现在我想在 y 轴上翻转数据点,过去一些任意 x 值。我想让他们消极。
我尝试了该flipy
命令,但这不起作用。