|
From: Ethan M. <eam...@gm...> - 2018-08-21 22:46:55
|
On Tue, Aug 21, 2018 at 3:33 PM, Patrick Dupre <pd...@gm...> wrote:
> Hello,
>
> Something is escaping to me.
> I tried:
>
> set table "out.asc"
> plot $DATA u (x=$1):(ampl*d_Lor_D (x-x0, W)+offset) with table
> unset table
>
>
> But the number of samples is ignored
That is because there is no sampling. You have asked it to print
one line of output for each line in $DATA. The first value on that line is
echoed from $DATA, the second value is a function of the first.
while
> plot $DATA u 1:2
> replot ampl*d_Lor_D (x-x0, W)+offset
> has the right number of sample
>
Here you generate two plots.
The first one has one line for each line in $DATA.
The second one samples a function, where the number of samples
is controlled by "set sample".
There is no intrinsic relationship between the x values in the first plot
and those in the second.
How can I fix the issue
>
It is not clear what you are aiming for.
Are you trying to fit and re-sample the values held in $DATA?
That would require a rather different set of commands, either
based on "fit" or "smooth".
Ethan
> Thank
>
> ============================================================
> ===============
> Patrick DUPRÉ | | email: pd...@gm...
> Laboratoire de Physico-Chimie de l'Atmosphère | |
> Université du Littoral-Côte d'Opale | |
> Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
> 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
> ============================================================
> ===============
>
|