I have some data that I want to connect them with smooth curves. I do not want lines. I am attaching some points below. Instead of lines, I want to have a curve. Can anyone tell me how to do this in gnuplot?

-111     -0.07  
 -24      0.09  
  62      0.12  
  69     -0.2  
  86     -0.7  
  99      0.74  
 101     -0.69  
 -45      0.2  
 120.403 -0.5848  
 170     -0.353  
 247.891 -0.105295  
 321      0.0925  

migrated from stats.stackexchange.com Jan 30 '14 at 19:24

This question came from our site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.


use the following command, for example,

plot "foo" u 1:2 smooth bezier

the other options instead of bezier are sbezier, csplines, acsplines. I would just test them for my data and see which one works the best for my purpose.


Use the smooth option of plot, with csplines :

plot "DATA" smooth csplines, "DATA" with points

You should not use bezier if you want to have the curve going through the points, as it will make a best fit with a minimal number of degrees of freedom.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.