You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2026 |
Jan
|
Feb
(24) |
Mar
(20) |
Apr
(18) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
(6) |
Oct
(3) |
Nov
(2) |
Dec
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2019-07-27 18:58:08
|
Am 25.07.2019 um 22:23 schrieb Reginald Beardsley via gnuplot-info: > I want to have major tics which are labelled and minor tics which are not. There's not really anything you should have to do to get that effect, as it's the default already. All you have to do is actually turn onn minor tics: set mxtics > gnuplot> set xtics scale 10 1 That does not do at all what you appear to intend. > Note that I did *not* get a minor tic interval of 1, but of 5. You did not get any minor tic interval at all, because you didnt's turn on minor tics. You requested a major tic _scale_ of 10 (which is the length of the tick marks), and because you didn't specify otherwise, the minor tic scale changed to match it. If you had really wanted the minor tic length a 1, that should have read set xtics scale 10,1 As-is the '1' becomes the x tic interval instead. Note how it changed from "intervals computed automatically" to "series by 1". |
|
From: Reginald B. <pul...@ya...> - 2019-07-25 20:23:55
|
I want to have major tics which are labelled and minor tics which are not.
For some reason I seem not to be able to do that. I've gone through all the demos that came with 4.4.3 and 4.6.5, but none showed how to do that. logscale produces the desired result, but I don't want a logarithmic scale.
G N U P L O T
Version 5.0 patchlevel 6 last modified 2017-03-18
Copyright (C) 1986-1993, 1998, 2004, 2007-2017
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'wxt'
gnuplot> sh tics
xyplane ticslevel is 0.5
tics are in back of plot
x-axis tics are IN, major ticscale is 1 and minor ticscale is 0.5
x-axis tics: on border and mirrored on opposite border
labels are justified automatically, format "% h" and are not rotated,
offset (character 0, 0, 0)
intervals computed automatically
[snip]
gnuplot> set xtics scale 10 1
gnuplot> sh tics
xyplane ticslevel is 0.5
tics are in back of plot
x-axis tics are IN, major ticscale is 10 and minor ticscale is 5
x-axis tics: on border and mirrored on opposite border
labels are justified automatically, format "% h" and are not rotated,
offset (character 0, 0, 0)
series by 1
[snip]
gnuplot>
Note that I did *not* get a minor tic interval of 1, but of 5.
If I now "plot [0:100] x" all the tics are labelled and there is no distinction between major and minor tics
Thanks,
Reg
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2019-07-09 18:42:53
|
Am 09.07.2019 um 16:38 schrieb Dario Sanfilippo: > I'm plotting the magnitudes of some FFT processing by feeding Gnuplot with > a 1-column, comma-separated csv file. If there's only one column, it makes relatively little sense to speak about column separators... > So if I have 512 elements, the x-axis goes from 0 to 512, Let's make that 0 to 511. > Is there a way to have the x-axis displaying the 0:512 range linearly > mapped to, say, 0:24000? See "help using". |
|
From: Ethan A M. <eam...@gm...> - 2019-07-09 15:19:04
|
On Tuesday, 09 July 2019 16:38:41 Dario Sanfilippo wrote: > Hello, list. > > I must be looking for the wrong keywords as I haven't found a solution for > this yet. > > I'm plotting the magnitudes of some FFT processing by feeding Gnuplot with > a 1-column, comma-separated csv file. > > So if I have 512 elements, the x-axis goes from 0 to 512, and the > magnitudes of the corresponding elements are on the y-axis. > > Is there a way to have the x-axis displaying the 0:512 range linearly > mapped to, say, 0:24000? set datafile separator comma plot DATA using ($0 * 24000./512.):1 with impulses Ethan > > Thank you so much for your help, > Dario -- entia non sunt multiplicanda praeter necessitatem |
|
From: Dario S. <san...@gm...> - 2019-07-09 14:39:26
|
Hello, list. I must be looking for the wrong keywords as I haven't found a solution for this yet. I'm plotting the magnitudes of some FFT processing by feeding Gnuplot with a 1-column, comma-separated csv file. So if I have 512 elements, the x-axis goes from 0 to 512, and the magnitudes of the corresponding elements are on the y-axis. Is there a way to have the x-axis displaying the 0:512 range linearly mapped to, say, 0:24000? Thank you so much for your help, Dario |
|
From: Dave H. <da...@ho...> - 2019-07-07 21:33:21
|
Odd; I just noticed that another of my graphs has a discontinuity at missing data, yet I don't have the "set datafile missing 'x'" line, so what on earth could be wrong? What have I not understood about missing data? Taking that directive out of spamlog.gp indeed shows a discontinuity (see www.horsfall.org/spamlog-1.pdf) so something is definitely fishy here... -- Dave ---------- Forwarded message ---------- Date: Sat, 6 Jul 2019 10:41:36 +1000 (EST) From: Dave Horsfall <da...@ho...> To: Gnuplot Mailing List <gnu...@li...> Subject: Gnuplot ignoring missing data Mac Sierra + latest patches (it won't go any further), Gnuplot 5.2 p6. Have a look at www.horsfall.org/spamlog.pdf and note the weirdness at the end; there is missing data there thanks to my ISP cutting my fibre and taking ages to fix it (great anti-spam measure, I suppose). In my spamlog.gp, I have: set datafile missing "x" ... plot datafile using 1:($2) lt rgb "red" title 'Reject', \ ... Sample line from spamlog.dat: 2019/04/26 x x x x x x x x x (Actually tabs, not spaces) Have I misunderstood what "missing" means? It's been a while since I studied stats... My understanding is just that: missing data, hence leave a hole in your graph (indistinguishable from zero in my case, but I can handle that). A message on StackOverflow also says that the above should work and not draw a line across it (not that I trust StackOverflow anyway), but that's exactly what Gnuplot is doing. Thanks. -- Dave |
|
From: Alan C. <ala...@gm...> - 2019-07-06 00:48:08
|
I've found that a nan (not a number) just leaves a hole and nothing plots for that point. Sent from my Motorola XT1527 On Fri, Jul 5, 2019, 8:42 PM Dave Horsfall <da...@ho...> wrote: > Mac Sierra + latest patches (it won't go any further), Gnuplot 5.2 p6. > > Have a look at www.horsfall.org/spamlog.pdf and note the weirdness at the > end; > there is missing data there thanks to my ISP cutting my fibre and taking > ages > to fix it (great anti-spam measure, I suppose). > > In my spamlog.gp, I have: > > set datafile missing "x" > ... > plot datafile using 1:($2) lt rgb "red" title 'Reject', \ > ... > > Sample line from spamlog.dat: > > 2019/04/26 x x x x x x x x x > (Actually tabs, not spaces) > > Have I misunderstood what "missing" means? It's been a while since I > studied > stats... My understanding is just that: missing data, hence leave a hole > in > your graph (indistinguishable from zero in my case, but I can handle that). > > A message on StackOverflow also says that the above should work and not > draw a > line across it (not that I trust StackOverflow anyway), but that's exactly > what > Gnuplot is doing. > > Thanks. > > -- Dave > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Dave H. <da...@ho...> - 2019-07-06 00:41:30
|
Mac Sierra + latest patches (it won't go any further), Gnuplot 5.2 p6. Have a look at www.horsfall.org/spamlog.pdf and note the weirdness at the end; there is missing data there thanks to my ISP cutting my fibre and taking ages to fix it (great anti-spam measure, I suppose). In my spamlog.gp, I have: set datafile missing "x" ... plot datafile using 1:($2) lt rgb "red" title 'Reject', \ ... Sample line from spamlog.dat: 2019/04/26 x x x x x x x x x (Actually tabs, not spaces) Have I misunderstood what "missing" means? It's been a while since I studied stats... My understanding is just that: missing data, hence leave a hole in your graph (indistinguishable from zero in my case, but I can handle that). A message on StackOverflow also says that the above should work and not draw a line across it (not that I trust StackOverflow anyway), but that's exactly what Gnuplot is doing. Thanks. -- Dave |
|
From: Tatsuro M. <tma...@ya...> - 2019-06-30 22:24:36
|
For sophisticated data analysis, please consider use other tools.
Python +SciPy+NumPy+Matplotlib on Jupyter-Lab, GNU Octave, or Scilab.
gnuplot is a basically plotting tool and do not expect to use it for complicated cases.
Tatsuro
----- Original Message -----
> From: Patrick Dupre
> To: tmacchant3
> Cc:
> Date: 2019/6/30, Sun 16:52
> Subject: Re: [Gnuplot-info] range of fitted variable
>
> Yes, It is interesting. Thanks.
> Finally, used the conditional ()?{}:{} to restrict the parameter range.
>
> ===========================================================================
> Patrick DUPRÉ | | email: pd...@gm...
> Laboratoire interdisciplinaire Carnot de Bourgogne
> 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
> Tel: +33 (0)380395988
> ===========================================================================
>
>
>> Sent: Sunday, June 30, 2019 at 1:44 AM
>> From: "Tatsuro MATSUOKA" <tma...@ya...>
>> To: "Patrick Dupre" <pd...@gm...>
>> Cc: gnu...@li...
>> Subject: Re: [Gnuplot-info] range of fitted variable
>>
>> Tricks are given in the below
>>
>> http://gnuplot-tricks.blogspot.com/2009/12/restricting-fit-parameters.html
>>
>>
>>
>> Tatsuro
>>
>>
>> ----- Original Message -----
>> > From: Tatsuro MATSUOKA
>> > To: Patrick Dupre
>> > Cc: gnuplot-info> Date: 2019/6/30, S
>> un 08:17
>> > Subject: Re: [Gnuplot-info] range of fitted variable
>> >
>> >> Even with Marquardt-Levenberg method, you can constrain
> parameters.
>> >
>> > OK. This is just my ignorance.
>> > Anyway, gnuplot fit uses unconstrained least square method.
>> >
>> >> Anyway, you can always does it in the function, and put the
> constrains here
>> >> since conditional statement are accepted.
>> >
>> > help fit says
>> > gnuplot> help fit
>> > The `fit` command fits a user-supplied real-valued expression to a
> set of
>> > data points, using the nonlinear least-squares Marquardt-Levenberg
>> > algorithm. There can be up to 12 independent variables, there is
> always 1
>> > dependent variable, and any number of parameters can be fitted.
>> > Optionally, error estimates can be input for weighting the data
> points.
>> >
>> > The basic use of `fit` is best explained by a simple example:
>> >
>> > f(x) = a + b*x + c*x**2
>> > fit f(x) 'measured.dat' using 1:2 via a,b,c
>> > plot 'measured.dat' u 1:2, f(x)
>> >
>> > Syntax:
>> > fit {<ranges>} <expression>
>> > '<datafile>' {datafile-modifiers}
>> > {{unitweights} | {y|xy|z}error | errors
>> > <var1>{,<var2>,...}}
>> > via '<parameter file>' |
>> > <var1>{,<var2>,...}
>> >
>> >
>> > ----- Original Message -----
>> >
>> >> From: Patrick Dupre
>> >> To: Tatsuro MATSUOKA
>> >> Cc: gnuplot
>> >> Date: 2019/6/30, Sun 07:18
>> >> Subject: Re: [Gnuplot-info] range of fitted variable
>> >>
>> >> Hello,
>> >>
>> >> I am not sure that it is a helfull response.
>> >> Even with Marquardt-Levenberg method, you can constrain
> parameters.
>> >> Anyway, you can always does it in the function, and put the
> constrains here
>> >> since conditional statement are accepted.
>> >>
>> >> Regards.
>> >>
>> >>> Subject: Re: [Gnuplot-info] range of fitted variable
>> >>>
>> >>> --- pdupre
>> >>> > Hello,
>> >>> >
>> >>> > Can I set a range to the fitted variable ?
>> >>> > An option could be to set a if (condition) in the
> fitting
>> > function. Is
>> >> it possible?
>> >>> >
>> >>> > Thanks
>> >>> >
>> >>>
>> >>> fit of gnuplot use Marquardt-Levenberg method.
>> >>> Marquardt-Levenberg method is a uncostrained method. You
> cannot set
>> > bounds
>> >> of parameters.
>> >>>
>> >>> Tatsuro
>> >>>
>> >>>
>> >>
>> >
>>
>>
>
|
|
From: Tatsuro M. <tma...@ya...> - 2019-06-29 23:44:12
|
Tricks are given in the below http://gnuplot-tricks.blogspot.com/2009/12/restricting-fit-parameters.html Tatsuro ----- Original Message ----- > From: Tatsuro MATSUOKA > To: Patrick Dupre > Cc: gnuplot-info> Date: 2019/6/30, S un 08:17 > Subject: Re: [Gnuplot-info] range of fitted variable > >> Even with Marquardt-Levenberg method, you can constrain parameters. > > OK. This is just my ignorance. > Anyway, gnuplot fit uses unconstrained least square method. > >> Anyway, you can always does it in the function, and put the constrains here >> since conditional statement are accepted. > > help fit says > gnuplot> help fit > The `fit` command fits a user-supplied real-valued expression to a set of > data points, using the nonlinear least-squares Marquardt-Levenberg > algorithm. There can be up to 12 independent variables, there is always 1 > dependent variable, and any number of parameters can be fitted. > Optionally, error estimates can be input for weighting the data points. > > The basic use of `fit` is best explained by a simple example: > > f(x) = a + b*x + c*x**2 > fit f(x) 'measured.dat' using 1:2 via a,b,c > plot 'measured.dat' u 1:2, f(x) > > Syntax: > fit {<ranges>} <expression> > '<datafile>' {datafile-modifiers} > {{unitweights} | {y|xy|z}error | errors > <var1>{,<var2>,...}} > via '<parameter file>' | > <var1>{,<var2>,...} > > > ----- Original Message ----- > >> From: Patrick Dupre >> To: Tatsuro MATSUOKA >> Cc: gnuplot >> Date: 2019/6/30, Sun 07:18 >> Subject: Re: [Gnuplot-info] range of fitted variable >> >> Hello, >> >> I am not sure that it is a helfull response. >> Even with Marquardt-Levenberg method, you can constrain parameters. >> Anyway, you can always does it in the function, and put the constrains here >> since conditional statement are accepted. >> >> Regards. >> >>> Subject: Re: [Gnuplot-info] range of fitted variable >>> >>> --- pdupre >>> > Hello, >>> > >>> > Can I set a range to the fitted variable ? >>> > An option could be to set a if (condition) in the fitting > function. Is >> it possible? >>> > >>> > Thanks >>> > >>> >>> fit of gnuplot use Marquardt-Levenberg method. >>> Marquardt-Levenberg method is a uncostrained method. You cannot set > bounds >> of parameters. >>> >>> Tatsuro >>> >>> >> > |
|
From: Tatsuro M. <tma...@ya...> - 2019-06-29 23:17:42
|
> Even with Marquardt-Levenberg method, you can constrain parameters.
OK. This is just my ignorance.
Anyway, gnuplot fit uses unconstrained least square method.
> Anyway, you can always does it in the function, and put the constrains here
> since conditional statement are accepted.
help fit says
gnuplot> help fit
The `fit` command fits a user-supplied real-valued expression to a set of
data points, using the nonlinear least-squares Marquardt-Levenberg
algorithm. There can be up to 12 independent variables, there is always 1
dependent variable, and any number of parameters can be fitted.
Optionally, error estimates can be input for weighting the data points.
The basic use of `fit` is best explained by a simple example:
f(x) = a + b*x + c*x**2
fit f(x) 'measured.dat' using 1:2 via a,b,c
plot 'measured.dat' u 1:2, f(x)
Syntax:
fit {<ranges>} <expression>
'<datafile>' {datafile-modifiers}
{{unitweights} | {y|xy|z}error | errors <var1>{,<var2>,...}}
via '<parameter file>' | <var1>{,<var2>,...}
----- Original Message -----
> From: Patrick Dupre
> To: Tatsuro MATSUOKA
> Cc: gnuplot
> Date: 2019/6/30, Sun 07:18
> Subject: Re: [Gnuplot-info] range of fitted variable
>
> Hello,
>
> I am not sure that it is a helfull response.
> Even with Marquardt-Levenberg method, you can constrain parameters.
> Anyway, you can always does it in the function, and put the constrains here
> since conditional statement are accepted.
>
> Regards.
>
>> Subject: Re: [Gnuplot-info] range of fitted variable
>>
>> --- pdupre
>> > Hello,
>> >
>> > Can I set a range to the fitted variable ?
>> > An option could be to set a if (condition) in the fitting function. Is
> it possible?
>> >
>> > Thanks
>> >
>>
>> fit of gnuplot use Marquardt-Levenberg method.
>> Marquardt-Levenberg method is a uncostrained method. You cannot set bounds
> of parameters.
>>
>> Tatsuro
>>
>>
>
|
|
From: Patrick D. <pd...@gm...> - 2019-06-29 22:18:58
|
Hello, I am not sure that it is a helfull response. Even with Marquardt-Levenberg method, you can constrain parameters. Anyway, you can always does it in the function, and put the constrains here since conditional statement are accepted. Regards. > Subject: Re: [Gnuplot-info] range of fitted variable > > --- pdupre > > Hello, > > > > Can I set a range to the fitted variable ? > > An option could be to set a if (condition) in the fitting function. Is it possible? > > > > Thanks > > > > fit of gnuplot use Marquardt-Levenberg method. > Marquardt-Levenberg method is a uncostrained method. You cannot set bounds of parameters. > > Tatsuro > > |
|
From: Tatsuro M. <tma...@ya...> - 2019-06-29 21:51:08
|
--- pdupre > Hello, > > Can I set a range to the fitted variable ? > An option could be to set a if (condition) in the fitting function. Is it possible? > > Thanks > fit of gnuplot use Marquardt-Levenberg method. Marquardt-Levenberg method is a uncostrained method. You cannot set bounds of parameters. Tatsuro |
|
From: Patrick D. <pd...@gm...> - 2019-06-29 20:50:49
|
Hello, Can I set a range to the fitted variable ? An option could be to set a if (condition) in the fitting function. Is it possible? Thanks =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 =========================================================================== |
|
From: Tatsuro M. <tma...@ya...> - 2019-06-27 12:18:58
|
-- pdupre
> Hello,
>
> Can I make a subroutine like
> sub F () {
> list of gnuplot calls ;
> }
>
> Thank.
You cannot do it in a script file.
You can call other script files with arguments by
call command.
see
help call
Tatsuro
|
|
From: Patrick D. <pd...@gm...> - 2019-06-27 10:51:48
|
Hello,
Can I make a subroutine like
sub F () {
list of gnuplot calls ;
}
Thank.
===========================================================================
Patrick DUPRÉ | | email: pd...@gm...
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988
===========================================================================
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2019-06-25 19:44:36
|
Am 24.06.2019 um 23:04 schrieb aflint414: > so i was attempting to make a simple graph. i made the graph successfully but > it was only when i attempted to export it per some website's instructions > that things started going south. That's because ypu either mis-applied those instructions, or they were horrificially bad. > gnuplot> set output "file.dat" > gnuplot> replot > warning: Skipping data file with no valid points > > gnuplot> plot "file.dat" using 1:2 pt 7 ps 2 You've now named the _same_ file as text data input, _and_ GIF-format output. That cannot possibly do what you wanted. |
|
From: Tatsuro M. <tma...@ya...> - 2019-06-25 16:40:55
|
--- aflint414 > so i was attempting to make a simple graph. i made the graph successfully but > it was only when i attempted to export it per some website's instructions > that things started going south. > this is what i submitted and what was output: > > gnuplot> set title "title" > gnuplot> set term gif > > Terminal type is now 'gif' > Options are 'nocrop enhanced size 640,480 font "arial,12.0" ' > gnuplot> set output "file.dat" > gnuplot> replot > warning: Skipping data file with no valid points > > gnuplot> plot "file.dat" using 1:2 pt 7 ps 2 > ^ > x range is invalid > > gnuplot> replot > warning: Skipping data file with no valid points > > gnuplot> plot "file.dat" using 1:2 pt 7 ps 2 > ^ > x range is invalid > > and when i opened nano in another window and attempted to open said data > file, there was nothing in it anymore. can someone explain to me what has > happened/how to fix it? it's for work and very urgent. much appreciated! > > it should be said that i was able to export via another method but i am > still having the issues with not being able to reopen/manipulate the old > plot anymore. > > > please show initial plot command with which you got a successful result. BTW, set output (file name) gives a gif image file for your case but not gives data. Tatsuro |
|
From: aflint414 <afl...@gm...> - 2019-06-24 21:04:47
|
so i was attempting to make a simple graph. i made the graph successfully but
it was only when i attempted to export it per some website's instructions
that things started going south.
this is what i submitted and what was output:
gnuplot> set title "title"
gnuplot> set term gif
Terminal type is now 'gif'
Options are 'nocrop enhanced size 640,480 font "arial,12.0" '
gnuplot> set output "file.dat"
gnuplot> replot
warning: Skipping data file with no valid points
gnuplot> plot "file.dat" using 1:2 pt 7 ps 2
^
x range is invalid
gnuplot> replot
warning: Skipping data file with no valid points
gnuplot> plot "file.dat" using 1:2 pt 7 ps 2
^
x range is invalid
and when i opened nano in another window and attempted to open said data
file, there was nothing in it anymore. can someone explain to me what has
happened/how to fix it? it's for work and very urgent. much appreciated!
it should be said that i was able to export via another method but i am
still having the issues with not being able to reopen/manipulate the old
plot anymore.
--
Sent from: http://gnuplot.10905.n7.nabble.com/Gnuplot-User-f3.html
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2019-06-19 19:40:19
|
Am 19.06.2019 um 00:36 schrieb Patrick Dupre: > I do not have a 3D cloud of points, just 2 sets of points (same length) with the > same x, Whether you admit it or not: that _is_ a cloud of points in 3D space. It's just represented a bit disjointedly. > I "just need" to minimize the sum of the square between a given function > and a set of data (which depend on 1 parameter). And that's, again, where this fails to make sense. If something depends on a parameter, it's not a set of data --- it's a function of said parameter, and the actual data. Just like it's normal for the model function of a fit. Your linear combination of y1 and y2 is a projection of the (y1,y2) plane onto a straight line rotated at angle \theta. Then you compare this projected value to a function depending on x. In the end, this means the function you need to minimize would actually be one of three variables, something like projection(theta; y1, y2) - function(a, x0; x) = min! or possibly projection^2(theta; y1, y2) - function^2(a, x0; x) = min! |
|
From: Patrick D. <pd...@gm...> - 2019-06-18 22:36:15
|
Hello Hans, It seems difficult to speak with you. I do not have a 3D cloud of points, just 2 sets of points (same length) with the same x, and I need to fit a linear combination of these y1 and y2 with a parameter (here theta) to fit the combination with a know (and simple) function (which has 2 parameters to adjust). Indeed, I can currently solve my problem visually by using gnuplot. I "just need" to minimize the sum of the square between a given function and a set of data (which depend on 1 parameter). Whatever are these data, they just have to be recalculated for each new fitted parameters (actually for only one parameter). Any minimization algorithm does that, except that in general, is does not have to recalculate the dataset, but basically it is the same procedure. I did it a thousand of times, but not with gnuplot, and I wanted to do the same with gnuplot. Please note that doing (x=$1): works perfectly well. There is maybe other option, but I can also want to do (x=$1/1000): When I said: y(x) = $2 (x) *sin(theta) + $3 (x) *cos(theta) it should have maybe said: y(i) = $2 (i) *sin(theta) + $3 (i) *cos(theta) where i is the index of the array, and assuming that $2 is a dataset that I index with i. Actually, I do not know how to said that with the words of gnuplot, but if you tell me how to calculate the minimum of (y(x) - f(x))^2 for 3 parameters, I shall be happy. (x can be an index). My Best. =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 =========================================================================== > Sent: Wednesday, June 19, 2019 at 12:01 AM > From: "Hans-Bernhard Bröker" <HBB...@t-...> > To: gnuplot <gnu...@li...> > Subject: Re: [Gnuplot-info] fit by varying the data > > Am 18.06.2019 um 21:33 schrieb Patrick Dupre: > > Sorry, > > > > Why it does not make sense? > > Because it doesn't. Assigning data to 'x' makes no sense because that's > what giving those data as the first "using" specifier already does, and > because 'x is not available to be assigned. > > > I need to fit 3 parameters, > > x0, a and theta > > by minimizing the sum of the square root: > > The function depend only on x (and of the parameters, x0 and a) > > while I have 2 sets of that $2 and $3 (which depend on the same > > x). > > I only know a linear combination of this 2 sets that can be fitted > > y(x) = $2 (x) *sin(theta) + $3 (x) *cos(theta) > > No, you don't know that combination. Which is why you're looking for it. > > > There is no fundamental glitch. > > I'm not convinced you've quite reached the point where you should be the > sole judge on that. > > > The 2 set of data are issue from the same experiment. > > Typically, it is vector whose you want to fit the direction. > > As given, no, it's not. You have a cloud of points in 3D. What you're > trying to fit is, for all practical intents and purposes, a plane > through that cloud. Except that, for some reason, you want to express > the orientation of that plane partially as an angle, partially as a slope. > > And the easiest way of doing that may well be to turn things around: > express $1 as a function of $2 and $3, and fit that. > > fit (cos(theta)*x+sin(theta)*y)/a + x0 'data' using 2:3:1 via a, x0, theta > > > > I need to re-read the datasets which are stored in $DATA > > No, you don't. You need to re-format your problem statement to > eliminate that apparent need. > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2019-06-18 22:01:33
|
Am 18.06.2019 um 21:33 schrieb Patrick Dupre: > Sorry, > > Why it does not make sense? Because it doesn't. Assigning data to 'x' makes no sense because that's what giving those data as the first "using" specifier already does, and because 'x is not available to be assigned. > I need to fit 3 parameters, > x0, a and theta > by minimizing the sum of the square root: > The function depend only on x (and of the parameters, x0 and a) > while I have 2 sets of that $2 and $3 (which depend on the same > x). > I only know a linear combination of this 2 sets that can be fitted > y(x) = $2 (x) *sin(theta) + $3 (x) *cos(theta) No, you don't know that combination. Which is why you're looking for it. > There is no fundamental glitch. I'm not convinced you've quite reached the point where you should be the sole judge on that. > The 2 set of data are issue from the same experiment. > Typically, it is vector whose you want to fit the direction. As given, no, it's not. You have a cloud of points in 3D. What you're trying to fit is, for all practical intents and purposes, a plane through that cloud. Except that, for some reason, you want to express the orientation of that plane partially as an angle, partially as a slope. And the easiest way of doing that may well be to turn things around: express $1 as a function of $2 and $3, and fit that. fit (cos(theta)*x+sin(theta)*y)/a + x0 'data' using 2:3:1 via a, x0, theta > I need to re-read the datasets which are stored in $DATA No, you don't. You need to re-format your problem statement to eliminate that apparent need. |
|
From: Patrick D. <pd...@gm...> - 2019-06-18 19:33:43
|
Sorry, Why it does not make sense? I need to fit 3 parameters, x0, a and theta by minimizing the sum of the square root: The function depend only on x (and of the parameters, x0 and a) while I have 2 sets of that $2 and $3 (which depend on the same x). I only know a linear combination of this 2 sets that can be fitted y(x) = $2 (x) *sin(theta) + $3 (x) *cos(theta) There is no fundamental glitch. The 2 set of data are issue from the same experiment. Typically, it is vector whose you want to fit the direction. This direction is optimum when one of the components varies linearly. I just need to minimize \sum (y(x) - a*(x-x0))^2 I need to re-read the datasets which are stored in $DATA Any minimization program can potentially do it. =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 =========================================================================== > Sent: Tuesday, June 18, 2019 at 8:45 PM > From: "Hans-Bernhard Bröker" <HBB...@t-...> > To: "Patrick Dupre" <pd...@gm...>, gnuplot <gnu...@li...> > Subject: Re: [Gnuplot-info] fit by varying the data > > Am 18.06.2019 um 18:53 schrieb Patrick Dupre: > > Hello, > > > > Can I do this: > > fit a*(x-x0) $DATA u (x=$1):($2*sin(theta)+$3*cos(theta)) via x0,a,theta > ^^^^ > > That assignment operation makes no sense at all. > > And no, you can't do that. The parameters have to influence the > _function_, not the data. You really wouldn't want to re-read the > entire dataset on every iteration of 'fit', just to update the effect of > parameters on the data. > > |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2019-06-18 18:46:05
|
Am 18.06.2019 um 18:53 schrieb Patrick Dupre:
> Hello,
>
> Can I do this:
> fit a*(x-x0) $DATA u (x=$1):($2*sin(theta)+$3*cos(theta)) via x0,a,theta
^^^^
That assignment operation makes no sense at all.
And no, you can't do that. The parameters have to influence the
_function_, not the data. You really wouldn't want to re-read the
entire dataset on every iteration of 'fit', just to update the effect of
parameters on the data.
|
|
From: Patrick D. <pd...@gm...> - 2019-06-18 16:54:01
|
Hello, Can I do this: fit a*(x-x0) $DATA u (x=$1):($2*sin(theta)+$3*cos(theta)) via x0,a,theta Actually it fails if I let theta vary. Can I do something similar? Thank =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 =========================================================================== |