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.

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

2 Comments

I did what you said but it doesn't make the graph smooth
@Khaadija Post your data file somewhere so that I can test it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.