Khaadija
Khaadija

Reputation: 46

Interpolating graph in gnuplot

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.

Upvotes: 0

Views: 813

Answers (2)

Ethan
Ethan

Reputation: 15093

"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.

Upvotes: 1

Miguel
Miguel

Reputation: 7627

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

Upvotes: 0

Related Questions