Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2695 > unrolled thread
| Started by | Ulrich Mosel <ulrich.mosel@gmail.com> |
|---|---|
| First post | 2015-01-11 07:52 -0800 |
| Last post | 2015-01-11 09:54 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
smooth bezier Ulrich Mosel <ulrich.mosel@gmail.com> - 2015-01-11 07:52 -0800
Re: smooth bezier Ethan A Merritt <EAMerritt@gmail.com> - 2015-01-11 09:54 -0800
| From | Ulrich Mosel <ulrich.mosel@gmail.com> |
|---|---|
| Date | 2015-01-11 07:52 -0800 |
| Subject | smooth bezier |
| Message-ID | <a9683578-095a-4922-8bf9-0e8164316032@googlegroups.com> |
I run gnuplot 5.0 on Windows 7. I have a datafile with columns with 1000 lines. I want to gnuplot the 2nd column vs. the first and smooth the curve: plot "data.dat" u 1 : 2 t "total bez" smooth bezier The result looks overall reasonable, BUT: The problem is that this produces 3 straight line segments at small values of the x-axis; the higher values are smoothed out allright. I experimented with this problem: by cutting the file to have less lines in it the plot becomes smooth also at lower x. Is there a limitation on the number of points that gnuplot smooth bezier can handle?
[toc] | [next] | [standalone]
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Date | 2015-01-11 09:54 -0800 |
| Message-ID | <m8udcm$9mg$1@dont-email.me> |
| In reply to | #2695 |
Ulrich Mosel wrote: > I run gnuplot 5.0 on Windows 7. > > I have a datafile with columns with 1000 lines. I want to gnuplot the > 2nd column vs. the first and smooth the curve: > > plot "data.dat" u 1 : 2 t "total bez" smooth bezier > > The result looks overall reasonable, BUT: The problem is that this > produces 3 straight line segments at small values of the x-axis; the > higher values are smoothed out allright. > > I experimented with this problem: by cutting the file to have less > lines in it the plot becomes smooth also at lower x. Is there a > limitation on the number of points that gnuplot smooth bezier can > handle? There is no limit, although in practice you might run out of memory if there are millions of points. I do not know exactly what you are seeing, but perhaps the problem is not the number of data points but the number of Bezier nodes? This is controlled by "set sample". Try set sample 1000
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web