【问题标题】:Interpolating graph in gnuplot在 gnuplot 中插值图
【发布时间】:2016-08-11 10:18:51
【问题描述】:

我正在尝试使用此命令在 gnu plot 中绘制图形

    plot 'temp.txt' using 1:3 title 'humidity' with lines smooth csplines,

   'temp.txt' using 1:2 title'temprature' with lines smooth splines

但曲线不够平滑,如您在图像 中看到的那样

我希望通过插值现有数据使曲线更加平滑。

【问题讨论】:

    标签: gnuplot interpolation smooth curves


    【解决方案1】:

    “smooth kdensity”会让你的曲线更平滑,但它不会来自插值。曲线不会完全通过任何点。

    【讨论】:

      【解决方案2】:

      您的数据采样可能高于您的 csplines 采样。在plot 命令之前尝试set samples 1000

      【讨论】:

      • 我按照你说的做了,但它并没有使图形平滑
      • @Khaadija 将您的数据文件发布到某处,以便我进行测试。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多