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
|
|
From: theozh <th...@gm...> - 2022-12-06 15:27:15
|
What is the larger context of your script snippet?
What should happen if flag_satur!=0 ?
Then $EXT_CEN should become (or stay) undefined or become something else?
> Hello,
>
> It seems that I cannot do this
> if (flag_satur==1) {
> $EXT_CEN << EOD
> 0.0 1e10 1e-13
> 0.0 1e10 1
> EOD
> }
>
|
|
From: theozh <th...@gm...> - 2022-12-06 15:13:49
|
and what about something like this?
FILE = "population.dat"
cmd = sprintf("< awk -f ~/awk/read_profiles.awk -v coly=5 %s", FILE)
plot cmd u 1:2
|
|
From: Patrick D. <pd...@gm...> - 2022-12-06 10:18:44
|
Hello,
It seems that I cannot do this
if (flag_satur==1) {
$EXT_CEN << EOD
0.0 1e10 1e-13
0.0 1e10 1
EOD
}
I get
attempt to define data block from invalid context
===========================================================================
Patrick DUPRÉ | | email: pd...@gm...
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
|
|
From: Patrick D. <pd...@gm...> - 2022-12-06 10:13:15
|
Thank. But negative. I used "< awk -f ~/awk/read_profiles.awk -v coly=5 " . FILE =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A =========================================================================== > Sent: Tuesday, December 06, 2022 at 11:00 AM > From: "theozh" <th...@gm...> > To: gnu...@li... > Subject: Re: [Gnuplot-info] awk > > Is there a specific reason, why you think you need awk? > > What about? > > FILE = "population.dat" > set datafile separator comma > plot FILE ($1-1965):2, pop(x) > > best, Theo. > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: theozh <th...@gm...> - 2022-12-06 10:01:11
|
Is there a specific reason, why you think you need awk? What about? FILE = "population.dat" set datafile separator comma plot FILE ($1-1965):2, pop(x) best, Theo. |
|
From: Patrick D. <pd...@gm...> - 2022-12-06 09:49:12
|
Hello,
I would like to do as in the example
plot "< awk ’{print $1-1965, $2}’ population.dat", pop(x)
but with population.dat in a variable.
I did not find the way to do it.
Can somebody put me on the way?
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 | | Room# D114A
===========================================================================
|
|
From: Norwid B. <nb...@ya...> - 2022-12-04 08:43:50
|
Dear Dave, back on [2021-11-21 Mon], you wrote to the user list seeking options to monitor the level of glucose over multiple weeks.[1] Though I do not know your familiarity with Emacs (both in terms of the editor, as well as the ecosystem around it), nor orgmode[2], yesterday's presentation «Health data journaling and visualization with Org Mode and gnuplot» by David O'Toole equally dealt with monitoring similar data. So I speculate it might be of interest for you, or other subscribers to the list. This approach includes a simplified input into a template, joining e.g., data worth a month into a table, and generation of a diagram David demonstrated on the ongoing EmacsConf 2022.[3] His talk is available as a transcript,[4] and as a video recording on youtube[5] of about 25 min. David shares his template (permissive MIT license) used on GitLab[6] for additional adjustments. So far, the benefits extend beyond a monthly map David may share with his GP. His diagram equally includes user-defined limits, these ease to spot the good days in one category, or an other (e.g., at least x min of physical exercise, no more than y tablets); then, the good days are quickly identified as are possible correlations between the parameters seen, too. With regards, Norwid [1] https://sourceforge.net/p/gnuplot/mailman/message/37388777/ [2] https://orgmode.org/ [3] https://emacsconf.org/2022/ [4] https://emacsconf.org/2022/talks/health/ [5] https://www.youtube.com/watch?v=YmQ1CYMz-OY [6] https://gitlab.com/dto/health-template |
|
From: Ethan M. <eam...@gm...> - 2022-11-30 07:18:01
|
On Tuesday, 29 November 2022 21:17:18 PST Nikita Zlobin via gnuplot-info wrote:
I like the idea.
The program already does something of the sort to insure that a function
is evaluated at x=0 even if regular subdivision of the x-axis range would
not generate a sample point there. If the location of the function's
extrema are known in advance, those special values of x could be added
to the sample set. Unfortunately the program does not in general know
how many or where such extrema are expected.
On the other hand, for periodic functions such as the example you show there
is another option. Set the sampling range to span exactly one period and
plot as many periods as needed to fill the desired x range.
For your function abs(sqrt(sin(x)))
unset key
set sample 99 # odd number advised
set xrange [-8:8]
f(x) = abs(sqrt(sin(x)))
offset(i) = t + i * 2*pi
plot for [i=-2:2] [t=0:2*pi] '+' using (offset(i)):(f(offset(i))) lt 1
99 samples is sufficient to give a reasonably smooth plot;
199 samples is even better.
Ethan
> I tried to plot «sqrt( sin(x) )» and noticed, that at 1000 samples with xrange [-8:8] lines break at visible distance from X axis. Even 10000 samples is not enough, and only 100k or 1m samples is more or less fine. Of course, it’s not good for vector documents like svg, eps or whatever latex terminals generate.
>
> This problem of open ends could solved by adding point between existing and non-existing neighbor points and adjusting its place with subdivide and conquer approach.
>
> Ideally this point could use one of reserved position for non-existing point, thus reducing chance of points number growth.
>
> Also, if points number growth is not problem, there could be second threshold to use for middle subdivisions, just to keep visually good resolution. This would allow to use minimum necessary points in the best way. In case if threshold for middle subdivisions is not specified, it could be calculated horizontal distance (may be multiplied by 2).
>
> --
> Nikita Zlobin
|
|
From: Nikita Z. <coo...@ma...> - 2022-11-30 05:17:49
|
I tried to plot «sqrt( sin(x) )» and noticed, that at 1000 samples with xrange [-8:8] lines break at visible distance from X axis. Even 10000 samples is not enough, and only 100k or 1m samples is more or less fine. Of course, it’s not good for vector documents like svg, eps or whatever latex terminals generate. This problem of open ends could solved by adding point between existing and non-existing neighbor points and adjusting its place with subdivide and conquer approach. Ideally this point could use one of reserved position for non-existing point, thus reducing chance of points number growth. Also, if points number growth is not problem, there could be second threshold to use for middle subdivisions, just to keep visually good resolution. This would allow to use minimum necessary points in the best way. In case if threshold for middle subdivisions is not specified, it could be calculated horizontal distance (may be multiplied by 2). -- Nikita Zlobin |
|
From: Norwid B. <nb...@ya...> - 2022-11-21 18:24:06
|
On Mon, 21 Nov 2022 11:59:29 -0500 Nicholas Papadonis <nic...@gm...> wrote: > Does anyone know if gnuplot has the ability to shift plots on the y-axis, > perhaps keeping association with the units? @Nicholas From your description it seems plausible you refer to /stacked plots/. Have a look on gnuplot's example gallery, section «page layout», entry «multiplot layout» https://gnuplot.sourceforge.net/demo_5.2/layout.html examples four and five. If I recall correctly, «Gnuplot in Action» by Philip Janert (Manning Publications) equally describes the stacking curves for the simultaneous presentation of multiple time series, in one of the later chapters. On occasion, it equally is a valuable technique for the visual comparison of 2D histograms in a column in common if both plots share the same over all interval, bin size, etc. (Of course, you have the distributions mean, median, kurtosis, skewness, etc. as a numeric tool.) Regards, Norwid |
|
From: Nicholas P. <nic...@gm...> - 2022-11-21 16:59:47
|
Does anyone know if gnuplot has the ability to shift plots on the y-axis, perhaps keeping association with the units? For instance, if I have multiple sets of data with the same x-range that appear to correlate in the graph, with different y-axis ranges (which would place the individual graphs at much different vertical positions), how can I shift each data set graph to coincide with the others on the vertical y-axis? One could think of an example as having different stock tick symbols and finding a way to shift each individual's symbol graph on the y-axis so one can compare the trends/spikes easier. Thanks |
|
From: Peter R. <p.r...@sh...> - 2022-11-15 16:33:07
|
Is it possible to specify the type of histogram (cluster, errorbars, rowstacked or columnstacked) together with the gap and box width directly in the 'plot' command? (As opposed to issuing things like 'set style histogram rowstacked' /before/ the 'plot' command.) I know specifying things like 'fill' for the bars is possible. Is there something like a "with histogram rowstacked" option for 'plot'? I ask because experience tells me that this sort of option is possible for other, non-histogram plotting styles, but is often not documented. (FWIW: I do have a specific reason for wanting to setup things in the 'plot' command.) Peter |
|
From: Patrick D. <pd...@gm...> - 2022-11-09 16:40:47
|
Hello, would it possible to pass the function (here f(x)) as a parameter or a pointer to the function f(x) ? 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 | | Room# D114A =========================================================================== > Sent: Tuesday, November 01, 2022 at 10:35 PM > From: "theozh" <th...@gm...> > To: gnu...@li... > Subject: Re: [Gnuplot-info] sum > > maybe something like this...? > > mySum(xmin,xmax,N) = sum[i=0:N-1] (x0=xmin+real(xmax-xmin)/(N-1)*i,f(x0)) > > f(x) = x > print mySum(1,100,100) > > f(x) = x**2 > print mySum(-10,10,2001) > > Results: 5050.0 and 66766.7 > > You need real() to avoid gnuplot's integer division. > Alternatively, you have to ensure that xmin or xmax are floating point numbers. > > Am 01.11.2022 um 20:55 schrieb Patrick Dupre: > > set samples 2001 > > > > f(x)= .. > > > > I wish to get the sum of f(x) from [-10:10] > > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Dan H. <dan...@ph...> - 2022-11-03 00:10:09
|
On Tue, 1 Nov 2022, Ethan Merritt wrote: > I don't have an immediate fix for this in gnuplot. My Gnuplot was compiled without libcerf support, so I can't test it, but why not do myfaddeeva(z) = exp(-z**2.0+log(1.0-erfi(-z)/(-I))) ? |
|
From: Peter R. <p.r...@sh...> - 2022-11-02 09:31:09
|
Ummm.... Would the OP's problem be more elegantly solved with a small
Python script. Or even using Excel to pre-process the data file?
(Reinhart & Rogoff notwithstanding...)
Peter
On 02/11/2022 05:02, Ethan Merritt wrote:
> Underflow confirmed.
>
> The Faddeeva function is exp(-z^2) * erfc(-i*z)
>
> Calculation of exp(-z^2) underflows to zero at about z = 27.
> Gnuplot's own exp function knows to ignore the floating point
> exception that is generated and just return zero.
> But the implementation used by the Faddeeva function in libcerf
> doesn't do this. It leaves the ERANGE error active.
>
> I don't have an immediate fix for this in gnuplot.
>
> The libcerf library does provide a separate function
> im_w_of_x(x) that would calculate the imaginary part
> without triggering an underflow, but that only helps if
> the calling program already knows there will be an underflow
> and calls the special case instead of the generic routine.
> Gnuplot doesn't currently know to do this.
>
> Ethan
>
>
> On Tuesday, 1 November 2022 18:02:33 PDT Ethan Merritt wrote:
>> On Tuesday, 1 November 2022 14:54:01 PDT Patrick Dupre wrote:
>>> Hello,
>>>
>>> Setting
>>> fcn(x,g,G)=-imag(1/(x+I*g)*faddeeva(x/G)
>>>
>>> plot [-30:30] fcn(x,0.01,1)
>>>
>>> provides
>>> nan from values less than -27.28 and more than 27.28
>>> There is not reason for that
>>> The value are small, but not very small
>>> slightly less than
>>> -0.0007586274478
>>>
>>> Any idea?
>>> Good question.
>>> Something in the cerf library is setting a range error (ERANGE)
>>> "Math result not representable". Possibly this is due to
>>> underflow of the real component, which we could ignore, but that is
>>> only speculation at this point. Note the result
>>> gnuplot> print faddeeva(27.)
>>> {2.50797207889417e-317, 0.0209102719931009}
>>> which indicates that the real component has reached the smallest
>>> representable IEEE double float value.
>>>
>>> I will investigate further.
>>>
>>> Ethan
>>>
>
>
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: Ethan M. <eam...@gm...> - 2022-11-02 05:02:16
|
Underflow confirmed.
The Faddeeva function is exp(-z^2) * erfc(-i*z)
Calculation of exp(-z^2) underflows to zero at about z = 27.
Gnuplot's own exp function knows to ignore the floating point
exception that is generated and just return zero.
But the implementation used by the Faddeeva function in libcerf
doesn't do this. It leaves the ERANGE error active.
I don't have an immediate fix for this in gnuplot.
The libcerf library does provide a separate function
im_w_of_x(x) that would calculate the imaginary part
without triggering an underflow, but that only helps if
the calling program already knows there will be an underflow
and calls the special case instead of the generic routine.
Gnuplot doesn't currently know to do this.
Ethan
On Tuesday, 1 November 2022 18:02:33 PDT Ethan Merritt wrote:
> On Tuesday, 1 November 2022 14:54:01 PDT Patrick Dupre wrote:
> > Hello,
> >
> > Setting
> > fcn(x,g,G)=-imag(1/(x+I*g)*faddeeva(x/G)
> >
> > plot [-30:30] fcn(x,0.01,1)
> >
> > provides
> > nan from values less than -27.28 and more than 27.28
> > There is not reason for that
> > The value are small, but not very small
> > slightly less than
> > -0.0007586274478
> >
> > Any idea?
>
> Good question.
> Something in the cerf library is setting a range error (ERANGE)
> "Math result not representable". Possibly this is due to
> underflow of the real component, which we could ignore, but that is
> only speculation at this point. Note the result
> gnuplot> print faddeeva(27.)
> {2.50797207889417e-317, 0.0209102719931009}
> which indicates that the real component has reached the smallest
> representable IEEE double float value.
>
> I will investigate further.
>
> Ethan
>
|
|
From: Ethan M. <eam...@gm...> - 2022-11-02 01:02:44
|
On Tuesday, 1 November 2022 14:54:01 PDT Patrick Dupre wrote:
> Hello,
>
> Setting
> fcn(x,g,G)=-imag(1/(x+I*g)*faddeeva(x/G)
>
> plot [-30:30] fcn(x,0.01,1)
>
> provides
> nan from values less than -27.28 and more than 27.28
> There is not reason for that
> The value are small, but not very small
> slightly less than
> -0.0007586274478
>
> Any idea?
Good question.
Something in the cerf library is setting a range error (ERANGE)
"Math result not representable". Possibly this is due to
underflow of the real component, which we could ignore, but that is
only speculation at this point. Note the result
gnuplot> print faddeeva(27.)
{2.50797207889417e-317, 0.0209102719931009}
which indicates that the real component has reached the smallest
representable IEEE double float value.
I will investigate further.
Ethan
>
> 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 | | Room# D114A
> ===========================================================================
>
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Patrick D. <pd...@gm...> - 2022-11-01 21:54:11
|
Hello, Setting fcn(x,g,G)=-imag(1/(x+I*g)*faddeeva(x/G) plot [-30:30] fcn(x,0.01,1) provides nan from values less than -27.28 and more than 27.28 There is not reason for that The value are small, but not very small slightly less than -0.0007586274478 Any idea? 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 | | Room# D114A =========================================================================== |
|
From: Alan C. <ala...@gm...> - 2022-11-01 21:43:31
|
As summation like for calculus? On 11/1/22, theozh <th...@gm...> wrote: > maybe something like this...? > > mySum(xmin,xmax,N) = sum[i=0:N-1] (x0=xmin+real(xmax-xmin)/(N-1)*i,f(x0)) > > f(x) = x > print mySum(1,100,100) > > f(x) = x**2 > print mySum(-10,10,2001) > > Results: 5050.0 and 66766.7 > > You need real() to avoid gnuplot's integer division. > Alternatively, you have to ensure that xmin or xmax are floating point > numbers. > > Am 01.11.2022 um 20:55 schrieb Patrick Dupre: >> set samples 2001 >> >> f(x)= .. >> >> I wish to get the sum of f(x) from [-10:10] >> > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- ------------- Education is contagious. |
|
From: theozh <th...@gm...> - 2022-11-01 21:35:59
|
maybe something like this...? mySum(xmin,xmax,N) = sum[i=0:N-1] (x0=xmin+real(xmax-xmin)/(N-1)*i,f(x0)) f(x) = x print mySum(1,100,100) f(x) = x**2 print mySum(-10,10,2001) Results: 5050.0 and 66766.7 You need real() to avoid gnuplot's integer division. Alternatively, you have to ensure that xmin or xmax are floating point numbers. Am 01.11.2022 um 20:55 schrieb Patrick Dupre: > set samples 2001 > > f(x)= .. > > I wish to get the sum of f(x) from [-10:10] > |
|
From: Patrick D. <pd...@gm...> - 2022-11-01 19:55:29
|
set samples 2001 f(x)= .. I wish to get the sum of f(x) from [-10:10] =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A =========================================================================== > Sent: Tuesday, November 01, 2022 at 8:34 PM > From: "theozh" <th...@gm...> > To: gnu...@li... > Subject: Re: [Gnuplot-info] sum > > What is your x-range and x-step? Only integer numbers? > Can you please give an example? > Have you checked "help sum"? > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: theozh <th...@gm...> - 2022-11-01 19:35:00
|
What is your x-range and x-step? Only integer numbers? Can you please give an example? Have you checked "help sum"? |
|
From: Patrick D. <pd...@gm...> - 2022-11-01 19:25:30
|
Hello, I have a function f(x) How can I get the sum of all the values calculated by this function? 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 | | Room# D114A =========================================================================== |
|
From: Patrick D. <pd...@gm...> - 2022-10-24 17:23:55
|
Hello, Can I use x2range with splot ? 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 | | Room# D114A =========================================================================== |
|
From: Debostuti G. <deb...@gm...> - 2022-10-17 11:30:46
|
Dear Gnuplot Community I am using the following command to plot my data with a set of variable colors. splot "Params.dat" using 3:6:1 with points pointtype 7 pointsize 1 lc variable linewidth 5 I had two questions regarding this: 1. How do I show a legend on the graph that indicates the value each color signifies, something like what we get using cbrange and palette? 2. How do I set the colors to particular ones instead of the default colors specified by lc variable? Thank you -- Debostuti Ghosh Dastidar Research Associate PDB-India |