|
From: seb_kramm <seb...@ya...> - 2012-10-02 20:43:09
|
On 10/02/2012 07:52 PM, Hans-Bernhard Bröker wrote: > Except that it isn't. An even number of points can be just as correct. The actual > trick lies in the combination of the underlying function's periodicity, the ordinate > range, and the number of samples: you want to have a sampling distance that is an > integer fraction of the signal's period, i.e. > function_period / (range_max - range_min) * (samples - 1) > should be an integer. E.g. > set samples 100 > plot [0:9] x-floor(x) > matches your expectations just fine, because 1.0/9.0*99 = 11.0 You are absolutely right, thanks for these clarifications. I indeed assumed that one would always want to plot on an even range, which can't always be the case. Regards, |