Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2697

Re: smooth bezier

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: smooth bezier
Date 2015-01-11 09:54 -0800
Organization A noiseless patient Spider
Message-ID <m8udcm$9mg$1@dont-email.me> (permalink)
References <a9683578-095a-4922-8bf9-0e8164316032@googlegroups.com>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

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

csiph-web