Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .