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
(13) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: hchiPer <hc...@gm...> - 2023-02-21 09:47:21
|
Hi, The border properties can be set via the 'set fill style' command, where a linetype can be specified, so you have either to use the linetype which has the desired color as a default, or to redefine a particular linetype with the parameters you need. I managed to get the expected result this way (I'm using gnuplot 5.4.4): 1) redefine one of the default linetypes with the desired parameters (line color, line width and even dash type) set linetype 1 lc 'blue' lw 3 # dt 2 2) redefine the fill style in order that it uses the desired linetype (fillcolor can't be defined here) set style fill border lt 1 # or 'noborder' for a box without border 3) plot your data by specifying the fill color only (the border presence and properties depending of the parameters of the previous 'set style fill' command: plot '-' w boxes fs solid 0.1 fc 'red' 0.2 0.3 0.1 0.4 0.8 0.1 0.6 0.4 0.1 e Laurent Le 19/02/23 à 02:46, Robert Dodier a écrit : > Hi, I'm working with boxes and I'd like to see if I can arrange for > the line around the border of the box to be a different color than the > interior of the box. > > I tried the following and I expected it to draw boxes which have a red > interior and blue border: > > plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' > fillcolor 'red' > 0.2 0.3 0.1 > 0.4 0.8 0.1 > 0.6 0.4 0.1 > e > > but what I see is that the border is red as well as the interior. > > When I try it without fillcolor, > > plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' > 0.2 0.3 0.1 > 0.4 0.8 0.1 > 0.6 0.4 0.1 > e > > the border is blue, as expected (and the interior is also blue, as > expected, since the documentation for boxes says that the fillcolor > defaults to the linecolor if not otherwise specified). > > Looking at the documentation for boxes, it doesn't seem to say > anything about how the border color is determined, and also doesn't > seem to say anything about the linecolor parameter, except to say > fillcolor defaults to linecolor. > > Is the observed behavior for the first example to be expected, or is > it a bug? Is there a way to get the border and the interior to be > different colors? > > Thanks for any light you can shed on this, I appreciate your help. > > Robert Dodier > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Robert D. <rob...@gm...> - 2023-02-19 02:52:25
|
On Sat, Feb 18, 2023 at 6:46 PM Alan Corey <ala...@gm...> wrote: > Can't you specify colors as RGB triplets? I would think that would be > preferable to color names. Hi Alan, thanks for your reply. It turns out the behavior is the same whether the colors are named or specified as rgb triplets. best, Robert |
|
From: Alan C. <ala...@gm...> - 2023-02-19 02:46:41
|
Can't you specify colors as RGB triplets? I would think that would be preferable to color names. On 2/18/23, Robert Dodier <rob...@gm...> wrote: > Sorry, I forgot to mention. I am working w/ Gnuplot 5.4 patchlevel 2 > on Linux. Terminal type is 'qt'. > > On Sat, Feb 18, 2023 at 5:46 PM Robert Dodier <rob...@gm...> > wrote: >> >> Hi, I'm working with boxes and I'd like to see if I can arrange for >> the line around the border of the box to be a different color than the >> interior of the box. >> >> I tried the following and I expected it to draw boxes which have a red >> interior and blue border: >> >> plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' >> fillcolor 'red' >> 0.2 0.3 0.1 >> 0.4 0.8 0.1 >> 0.6 0.4 0.1 >> e >> >> but what I see is that the border is red as well as the interior. >> >> When I try it without fillcolor, >> >> plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' >> 0.2 0.3 0.1 >> 0.4 0.8 0.1 >> 0.6 0.4 0.1 >> e >> >> the border is blue, as expected (and the interior is also blue, as >> expected, since the documentation for boxes says that the fillcolor >> defaults to the linecolor if not otherwise specified). >> >> Looking at the documentation for boxes, it doesn't seem to say >> anything about how the border color is determined, and also doesn't >> seem to say anything about the linecolor parameter, except to say >> fillcolor defaults to linecolor. >> >> Is the observed behavior for the first example to be expected, or is >> it a bug? Is there a way to get the border and the interior to be >> different colors? >> >> Thanks for any light you can shed on this, I appreciate your help. >> >> Robert Dodier > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- ------------- Education is contagious. |
|
From: Robert D. <rob...@gm...> - 2023-02-19 02:06:36
|
Sorry, I forgot to mention. I am working w/ Gnuplot 5.4 patchlevel 2 on Linux. Terminal type is 'qt'. On Sat, Feb 18, 2023 at 5:46 PM Robert Dodier <rob...@gm...> wrote: > > Hi, I'm working with boxes and I'd like to see if I can arrange for > the line around the border of the box to be a different color than the > interior of the box. > > I tried the following and I expected it to draw boxes which have a red > interior and blue border: > > plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' > fillcolor 'red' > 0.2 0.3 0.1 > 0.4 0.8 0.1 > 0.6 0.4 0.1 > e > > but what I see is that the border is red as well as the interior. > > When I try it without fillcolor, > > plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' > 0.2 0.3 0.1 > 0.4 0.8 0.1 > 0.6 0.4 0.1 > e > > the border is blue, as expected (and the interior is also blue, as > expected, since the documentation for boxes says that the fillcolor > defaults to the linecolor if not otherwise specified). > > Looking at the documentation for boxes, it doesn't seem to say > anything about how the border color is determined, and also doesn't > seem to say anything about the linecolor parameter, except to say > fillcolor defaults to linecolor. > > Is the observed behavior for the first example to be expected, or is > it a bug? Is there a way to get the border and the interior to be > different colors? > > Thanks for any light you can shed on this, I appreciate your help. > > Robert Dodier |
|
From: Robert D. <rob...@gm...> - 2023-02-19 01:46:34
|
Hi, I'm working with boxes and I'd like to see if I can arrange for the line around the border of the box to be a different color than the interior of the box. I tried the following and I expected it to draw boxes which have a red interior and blue border: plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' fillcolor 'red' 0.2 0.3 0.1 0.4 0.8 0.1 0.6 0.4 0.1 e but what I see is that the border is red as well as the interior. When I try it without fillcolor, plot '-' with boxes fillstyle solid 0.1 linewidth 3 linecolor 'blue' 0.2 0.3 0.1 0.4 0.8 0.1 0.6 0.4 0.1 e the border is blue, as expected (and the interior is also blue, as expected, since the documentation for boxes says that the fillcolor defaults to the linecolor if not otherwise specified). Looking at the documentation for boxes, it doesn't seem to say anything about how the border color is determined, and also doesn't seem to say anything about the linecolor parameter, except to say fillcolor defaults to linecolor. Is the observed behavior for the first example to be expected, or is it a bug? Is there a way to get the border and the interior to be different colors? Thanks for any light you can shed on this, I appreciate your help. Robert Dodier |
|
From: hchiPer <hc...@gm...> - 2022-12-19 08:49:01
|
Instead of an 'x', use 'Nan' or '1/0' (without the quotes) for unavailable data. You will get a gap in the graphs. See gnuplot manual under the section "Set datafile missing" for more info. There is a gap only where a data is invalid (e.g. NaN or 1/0). When a data is missing, the line is drawn anyway. When gnuplot tries to compute the square root of the products, the result is indeed NaN when one of the values is the letter x, and this explains why there is a gap in your third line. Le 18/12/22 à 22:27, Dave Horsfall a écrit : > Gnuplot 5.4.3 on old MacBook Pro running High Sierra. > > I have many graphs which have missing data e.g. I was too lazy to record > it on that day etc; these are indicated with "x" in the data file. > > Now, hie thee to http://www.horsfall.org/bike.pdf which is a graph of the > progress (if any) that I am making on my exercise bike; the "brake" is the > friction adjustment and does not seem to be in any particular unit. > > For laughs I compute an overall "effort" value which is the product of the > distance and the brake (I was forced to rescale it by taking the square > root to both make it fit and to make it look better, but that's irrelevant > here). > > Notice how the recorded data is interpolated over the missing data, yet > the computed plot shows a gap (the desired behaviour). > > (I do not use `set datafile missing "x"' anywhere) > > Oddly enough my other graphs such as www.horsfall.org/health.pdf etc are > fine; the only difference is the linetype where I am using "lt rgb" and no > "pt", whereas with my exercise bike I am using a specific point type to be > compatible with both a colour inkjet and a mono laser. > > Is this expected behaviour? It looks like a bug to me... > > Attached are the relevant *.dat and *.gp files. > > Thanks. > > -- Dave > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Dave H. <da...@ho...> - 2022-12-18 21:40:41
|
Gnuplot 5.4.3 on old MacBook Pro running High Sierra. I have many graphs which have missing data e.g. I was too lazy to record it on that day etc; these are indicated with "x" in the data file. Now, hie thee to http://www.horsfall.org/bike.pdf which is a graph of the progress (if any) that I am making on my exercise bike; the "brake" is the friction adjustment and does not seem to be in any particular unit. For laughs I compute an overall "effort" value which is the product of the distance and the brake (I was forced to rescale it by taking the square root to both make it fit and to make it look better, but that's irrelevant here). Notice how the recorded data is interpolated over the missing data, yet the computed plot shows a gap (the desired behaviour). (I do not use `set datafile missing "x"' anywhere) Oddly enough my other graphs such as www.horsfall.org/health.pdf etc are fine; the only difference is the linetype where I am using "lt rgb" and no "pt", whereas with my exercise bike I am using a specific point type to be compatible with both a colour inkjet and a mono laser. Is this expected behaviour? It looks like a bug to me... Attached are the relevant *.dat and *.gp files. Thanks. -- Dave |
|
From: Dan H. <dan...@ph...> - 2022-12-06 17:30:03
|
On Tue, 29 Nov 2022, Ethan Merritt wrote: > 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. For that, you probably want a computer algebra system that can interface with Gnuplot for plotting purposes (e.g. Maxima) rather than Gnuplot on its own. |
|
From: theozh <th...@gm...> - 2022-12-06 16:08:19
|
Apparently, for some reason (which I don't know) you cannot define an inline datablock within an if-else loop.
However, you can *print* to datablocks.
flag_satur=1
if (flag_satur==1) {
set print $EXT_CEN
print "0.0 1e10 1e-13"
print "0.0 1e10 1"
set print $EXT_p1
print "5 1e10 1e-13"
print "5 1e10 1"
set print $EXT_m1
print "-5 1e10 1e-13"
print "-5 1e10 1"
set print
}
else {
# For Linear absorption
set print $EXT_CEN
print "0.0 1e4 1e-11"
print "0.0 1e4 1"
set print $EXT_p1
print "5 1e4 1e-11"
print "5 1e4 1"
set print $EXT_m1
print "-5 1e4 1e-11"
print "-5 1e4 1"
set print
}
> Maybe I missed the point, there is a
>
> replot $EXT_CEN w l lt 0 lw 1 dt "." lc rgb "gray"
>
>
|
|
From: Patrick D. <pd...@gm...> - 2022-12-06 16:02:42
|
Maybe I missed the point, there is a
replot $EXT_CEN w l lt 0 lw 1 dt "." lc rgb "gray"
> Sent: Tuesday, December 06, 2022 at 4:49 PM
> From: "Patrick Dupre" <pd...@gm...>
> To: "theozh" <th...@gm...>
> Cc: gnu...@li...
> Subject: Re: [Gnuplot-info] invalid context
>
> Thank for the feedback,
>
> Of course not,
> There is an else
> but the issue is with the if !
>
> if (flag_satur==1) {
> $EXT_CEN << EOD
> 0.0 1e10 1e-13
> 0.0 1e10 1
> EOD
> $EXT_p1 << EOD
> 5 1e10 1e-13
> 5 1e10 1
> EOD
> $EXT_m1 << EOD
> -5 1e10 1e-13
> -5 1e10 1
> EOD
> }
> else {
> # For Linear absorption
> $EXT_CEN << EOD
> 0.0 1e4 1e-11
> 0.0 1e4 1
> EOD
> $EXT_p1 << EOD
> 5 1e4 1e-11
> 5 1e4 1
> EOD
> $EXT_m1 << EOD
> -5 1e4 1e-11
> -5 1e4 1
> EOD
> }
replot $EXT_CEN w l lt 0 lw 1 dt "." lc rgb "gray"
>
> ===========================================================================
> 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 4:27 PM
> > From: "theozh" <th...@gm...>
> > To: gnu...@li...
> > Subject: Re: [Gnuplot-info] invalid context
> >
> > 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
> > > }
> > >
> >
> >
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Patrick D. <pd...@gm...> - 2022-12-06 15:49:36
|
Thank for the feedback,
Of course not,
There is an else
but the issue is with the if !
if (flag_satur==1) {
$EXT_CEN << EOD
0.0 1e10 1e-13
0.0 1e10 1
EOD
$EXT_p1 << EOD
5 1e10 1e-13
5 1e10 1
EOD
$EXT_m1 << EOD
-5 1e10 1e-13
-5 1e10 1
EOD
}
else {
# For Linear absorption
$EXT_CEN << EOD
0.0 1e4 1e-11
0.0 1e4 1
EOD
$EXT_p1 << EOD
5 1e4 1e-11
5 1e4 1
EOD
$EXT_m1 << EOD
-5 1e4 1e-11
-5 1e4 1
EOD
}
===========================================================================
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 4:27 PM
> From: "theozh" <th...@gm...>
> To: gnu...@li...
> Subject: Re: [Gnuplot-info] invalid context
>
> 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
> > }
> >
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
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))) ? |