0

Im trying to plot a graph in gnu plot using this command

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

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

but the curves are not smooth enough as you can see in the image enter image description here

I want the curves to be more smooth by interpolating the existing data.

Khaadija
  • 46
  • 5

2 Answers2

1

"smooth kdensity" will get you smoother curves, but it won't be from interpolation. The curves will not go exactly through any of the points.

Ethan
  • 13,715
  • 2
  • 12
  • 21
0

Your data sampling is probably higher than your csplines sampling. Try set samples 1000 before the plot command.

Miguel
  • 7,497
  • 2
  • 27
  • 46