|
From: Patrick D. <pd...@gm...> - 2018-08-22 07:49:11
|
Sorry, for the replot, I do not need the replot. I want to do for example: set table "out.asc" plot [44500:45600] (ampl*d_Lor_D (x-x0, W)+offset) without getting the third column with "i" or plot $DATA u (x=$1):(ampl*d_Lor_D (x-x0, W)+offset) for x taken from x_min to x_max with "samples" values in other words. I want in a file what I can plot with replot ampl*d_Lor_D (x-x0, W)+offset after a fit. 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 =========================================================================== > Sent: Wednesday, August 22, 2018 at 5:56 AM > From: "Ethan A Merritt" <EAM...@gm...> > To: "Patrick Dupre" <pd...@gm...> > Cc: gnuplot <gnu...@li...> > Subject: Re: [Gnuplot-info] plot with table > > On Wednesday, 22 August 2018 00:56:20 Patrick Dupre wrote: > > > > =========================================================================== > > 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 > > =========================================================================== > > > > > > Sent: Wednesday, August 22, 2018 at 12:46 AM > > From: "Ethan Merritt" <eam...@gm...> > > To: "Patrick Dupre" <pd...@gm...> > > Cc: gnuplot <gnu...@li...> > > Subject: Re: [Gnuplot-info] plot with table > > 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 > > > > > > Actually, I fit $DATA, and I plot the fit with replot ampl*d_Lor_D (x-x0, W)+offset > > while I would like also to get the same data in a file > > Sorry, I still do not understand what you are trying to do. > Why are you using "replot" rather than "plot"? > What content, exactly, do you want to have in the output file? > > Ethan > > > > > |