Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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  
share|improve this question

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

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

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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