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: theozh <th...@gm...> - 2020-07-13 05:13:23
|
glad to hear that this helped a little. But I again forgot... gnuplot has (this annoying) integer division. (i*360/16+11.25) should read (i*360./16+11.25) or (i*360/16.+11.25) Otherwise i*360/16 would be an integer. |
|
From: Kevin O. <rko...@gm...> - 2020-07-13 04:48:33
|
On Sun, Jul 12, 2020 at 1:40 PM theozh <th...@gm...> wrote:
> I'm not sure whether you can do this directly. I assume you mean the ttics.
> Although you can set a polar grid angle (check 'help grid') you can only
> start at multiples of 90 degrees. Check 'help theta'.
> A workaround would be to draw the gridlines manually.
> I hope this still helps somehow.
> Best, Theo.
>
> Try the following example:
>
> ### polar plot with grids
> reset session
> set size square
> set angle degrees
>
> set polar
> set theta clockwise top
> unset border
> unset tics
> unset raxis
> unset key
> set border polar
> set ttics 11.25, 22.50 format ""
> set rtics 10 scale 0 format ""
> set grid rtics
>
> set rrange[0:40]
> # manually draw grid lines
> do for [i=1:16] {
> set arrow i from 0,0 to polar (i*360/16+11.25),40 lw 0.5 dt 3 lc rgb
> "black" nohead
> }
>
> set samples 16
> plot t/9 w lp pt 7 lc rgb "red"
> ### end of code
>
Thank you, Theo. I have not tried drawing the grid, but your suggestions
have gotten me very close to what I'm looking for. Especially for 'set
theta" and the use of "format" on set ttics". Since the manual for ttics
explicitly stated "The angular position is always labeled in degrees.", I
didn't even try format. As a result, I now am close to my goal. Still a
couple of things I need to tweak... like playing with the smoothing.
Again, thanks! If you are curious, it's at
http://ykoberman.mooo.com/display-weather-graph.pl?Plot=dir
Not too interesting unless you live near Lawrence Livermore National Lab,
but it's all gnuplot except the main page (Home).
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rko...@gm...
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
|
|
From: theozh <th...@gm...> - 2020-07-12 20:40:14
|
I'm not sure whether you can do this directly. I assume you mean the ttics.
Although you can set a polar grid angle (check 'help grid') you can only start at multiples of 90 degrees. Check 'help theta'.
A workaround would be to draw the gridlines manually.
I hope this still helps somehow.
Best, Theo.
Try the following example:
### polar plot with grids
reset session
set size square
set angle degrees
set polar
set theta clockwise top
unset border
unset tics
unset raxis
unset key
set border polar
set ttics 11.25, 22.50 format ""
set rtics 10 scale 0 format ""
set grid rtics
set rrange[0:40]
# manually draw grid lines
do for [i=1:16] {
set arrow i from 0,0 to polar (i*360/16+11.25),40 lw 0.5 dt 3 lc rgb "black" nohead
}
set samples 16
plot t/9 w lp pt 7 lc rgb "red"
### end of code
|
|
From: Kevin O. <rko...@gm...> - 2020-07-12 19:54:16
|
I am trying to plot a compass type polar plot. As such, I want grid lines at 22.5 degree intervals, but I want them to start 11.25 degrees before or after 0 degrees. I've been studying the manual, but have been unable to figure it out. To fully clarify, I want grid lines between N, NNE, NE, ENE, E, etc. with one at 11.25 degrees before and after each section. Is there a clever way to do this? Or, maybe an obvious one I missed? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rko...@gm... PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 |
|
From: rekha s. <rek...@gm...> - 2020-07-07 21:05:33
|
Dear Sir,
I corrected that mistake but still I am getting error which is pointing
towards:
% g + a_1/T
Attached are test.data and test.gnu file (part of test.gnu is mentioned
below).
f(x,a0,a1) = a0 + a1/x
fit f(x,a01,a11) 'test.data' using 1:2 via a01,a11
fit f(x,a02,a12) 'test.data' using 1:3 via a02,a12
fit f(x,a03,a13) 'test.data' using 1:4 via a03,a13
fit f(x,a04,a14) 'test.data' using 1:5 via a04,a14
fit f(x,a05,a15) 'test.data' using 1:6 via a05,a15
fit f(x,a06,a16) 'test.data' using 1:7 via a06,a16
fit f(x,a07,a17) 'test.data' using 1:8 via a07,a17
fit f(x,a08,a18) 'test.data' using 1:9 via a08,a18
plot \
'test.data' using 1:2 w points pt 1 t , \
f(x,a01,a11) t sprintf("K_{fit} = % g + a_1/T", a01), \
'' using 1:3 w points pt 1 t , \
f(x,a02,a12) t sprintf("K_{fit} = % g + a_1/T", a02), \
'' using 1:4 w points pt 1 t , \
f(x,a03,a13) t sprintf("K_{fit} = % g + a_1/T", a03), \
'' using 1:5 w points pt 1 t , \
f(x,a04,a14) t sprintf("K_{fit} = % g + a_1/T", a04), \
'' using 1:6 w points pt 1 t , \
f(x,a05,a15) t sprintf("K_{fit} = % g + a_1/T", a05), \
'' using 1:7 w points pt 1 t , \
f(x,a06,a16) t sprintf("K_{fit} = % g + a_1/T", a06), \
'' using 1:8 w points pt 1 t , \
f(x,a07,a17) t sprintf("K_{fit} = % g + a_1/T", a07), \
'' using 1:9 w points pt 1 t , \
f(x,a08,a18) t sprintf("K_{fit} = % g + a_1/T", a08), \
On Wed, Jul 8, 2020 at 1:26 AM Hans-Bernhard Bröker <HBB...@t-...>
wrote:
> Am 04.07.2020 um 21:57 schrieb rekha sharma:
> > Dear Sir
> > My gnuplot version is
> > Version 5.2 patchlevel 2 last modified 2017-11-01
>
> That's getting a bit stale, bit it should still be usable.
>
> >
> > With the test.gnu file as suggested by you
>
> ... I'm afraid you did miss a few important aspects of the proposal...
>
> > this ^ points to a08) .
>
> Now look at the version you put together and ask yourself: is a08 really
> treated the same as, say, a03, and a18 or is there possibly some
> difference that might explain why the error concerned a08, but not any
> of the other 15 variables?
>
--
Best wishes
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2020-07-07 19:56:39
|
Am 04.07.2020 um 21:57 schrieb rekha sharma: > Dear Sir > My gnuplot version is > Version 5.2 patchlevel 2 last modified 2017-11-01 That's getting a bit stale, bit it should still be usable. > > With the test.gnu file as suggested by you ... I'm afraid you did miss a few important aspects of the proposal... > this ^ points to a08) . Now look at the version you put together and ask yourself: is a08 really treated the same as, say, a03, and a18 or is there possibly some difference that might explain why the error concerned a08, but not any of the other 15 variables? |
|
From: rekha s. <rek...@gm...> - 2020-07-04 19:58:18
|
Dear Sir
My gnuplot version is
Version 5.2 patchlevel 2 last modified 2017-11-01
With the test.gnu file as suggested by you
f(x,a0,a1) = a0 + a1/x
fit f(x,a01,a11) 'test.data' using 1:2 via a01,a11
fit f(x,a02,a12) 'test.data' using 1:3 via a02,a12
fit f(x,a02,a13) 'test.data' using 1:4 via a02,a13
fit f(x,a02,a14) 'test.data' using 1:5 via a02,a14
fit f(x,a02,a15) 'test.data' using 1:6 via a02,a15
fit f(x,a02,a16) 'test.data' using 1:7 via a02,a16
fit f(x,a02,a17) 'test.data' using 1:8 via a02,a17
fit f(x,a02,a18) 'test.data' using 1:9 via a02,a18
plot \
'test.data' using 1:2 w points pt 1 t , \
f(x,a01,a11) t sprintf("K_{fit} = % g + a_1/T", a01), \
'' using 1:3 w points pt 1 t , \
f(x,a02,a12) t sprintf("K_{fit} = % g + a_1/T", a02), \
'' using 1:4 w points pt 1 t , \
f(x,a03,a13) t sprintf("K_{fit} = % g + a_1/T", a03), \
'' using 1:5 w points pt 1 t , \
f(x,a04,a14) t sprintf("K_{fit} = % g + a_1/T", a04), \
'' using 1:6 w points pt 1 t , \
f(x,a05,a15) t sprintf("K_{fit} = % g + a_1/T", a05), \
'' using 1:7 w points pt 1 t , \
f(x,a06,a16) t sprintf("K_{fit} = % g + a_1/T", a06), \
'' using 1:8 w points pt 1 t , \
f(x,a07,a17) t sprintf("K_{fit} = % g + a_1/T", a07), \
'' using 1:9 w points pt 1 t , \
'' using 1:4 w points pt 1 t , \
f(x,a03,a18) t sprintf("K_{fit} = % g + a_1/T", a08), \
I am getting error below error
^
"hans.gnu", line 27: invalid expression
this ^ points to a08) .
Regards
Rekha
On Sun, Jul 5, 2020 at 12:58 AM Hans-Bernhard Bröker <HBB...@t-...>
wrote:
> Am 04.07.2020 um 17:04 schrieb rekha sharma:
>
> > f(x) = (a0 + a1/x)
> > fit f(x) 'test.data' using 1:2 via a0,a1
> > plot 'test.data' using 1:2 w points pt 1 t , f(x) t sprintf("K_{fit} =
> > a_0 + a_1/T", a0)
> [... and the same for columns 3 to 9 as the y axis]
>
> > Using this code, I am getting a plot in eight boxes
>
> Using only that code, that cannot happen. What you would get is 8
> plots, but not in 8 boxes, but rather on 8 separate pages of output (if
> your output supports that), or just a single plot window being updated 8
> times. To get "a plot in 8 boxes", you would have to have "set
> multiplot layout ..." in effect somehow.
>
> > Is there any workaround for this issue in gnuplot so that I can plot all
> > above in a single box?
>
> For all the above to show up in a single "box", i.e. on a single page,
> you have to change the the way you define your fit model function and
> its parameters. And then you have to undo the parts of your scripts
> that you claim aren't there, about "set multiplot"
>
> f(x,a0,a1) = a0 + a1/x
>
> fit f(x,a01,a11) 'test.data' using 1:2 via a01,a11
> fit f(x,a02,a11) 'test.data' using 1:3 via a02,a12
> [...]
>
> plot \
> 'test.data' using 1:2 w points pt 1 t , \
> f(x,a01,a11) t sprintf("K_{fit} = % g + a_1/T", a01), \
> '' using 1:3 w points pt 1 t , \
> f(x,a02,a12) t sprintf("K_{fit} = % g + a_1/T", a02), \
> '' using 1:4 w points pt 1 t , \
> f(x,a03,a13) t sprintf("K_{fit} = % g + a_1/T", a03), \
> [...]
>
> If your gnuplot is new enough, the above can be improved upon using for
> loops for the fits and the parts of the plot, and arrays for the
> parameters. And you'll want to re-think that sprintf, I think.
>
> That will give you a rather packed diagram, though.
>
--
Best wishes
Ms. Rekha
Teaching Assistant,
Department of Physics
RK college, Jaipur, India
Mob.: +11 90-95 790 71 697
Email: rek...@gm...
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2020-07-04 19:29:12
|
Am 04.07.2020 um 17:04 schrieb rekha sharma:
> f(x) = (a0 + a1/x)
> fit f(x) 'test.data' using 1:2 via a0,a1
> plot 'test.data' using 1:2 w points pt 1 t , f(x) t sprintf("K_{fit} =
> a_0 + a_1/T", a0)
[... and the same for columns 3 to 9 as the y axis]
> Using this code, I am getting a plot in eight boxes
Using only that code, that cannot happen. What you would get is 8
plots, but not in 8 boxes, but rather on 8 separate pages of output (if
your output supports that), or just a single plot window being updated 8
times. To get "a plot in 8 boxes", you would have to have "set
multiplot layout ..." in effect somehow.
> Is there any workaround for this issue in gnuplot so that I can plot all
> above in a single box?
For all the above to show up in a single "box", i.e. on a single page,
you have to change the the way you define your fit model function and
its parameters. And then you have to undo the parts of your scripts
that you claim aren't there, about "set multiplot"
f(x,a0,a1) = a0 + a1/x
fit f(x,a01,a11) 'test.data' using 1:2 via a01,a11
fit f(x,a02,a11) 'test.data' using 1:3 via a02,a12
[...]
plot \
'test.data' using 1:2 w points pt 1 t , \
f(x,a01,a11) t sprintf("K_{fit} = % g + a_1/T", a01), \
'' using 1:3 w points pt 1 t , \
f(x,a02,a12) t sprintf("K_{fit} = % g + a_1/T", a02), \
'' using 1:4 w points pt 1 t , \
f(x,a03,a13) t sprintf("K_{fit} = % g + a_1/T", a03), \
[...]
If your gnuplot is new enough, the above can be improved upon using for
loops for the fits and the parts of the plot, and arrays for the
parameters. And you'll want to re-think that sprintf, I think.
That will give you a rather packed diagram, though.
|
|
From: rekha s. <rek...@gm...> - 2020-07-04 17:34:09
|
Thank you theozh Sir, I am lucky to get your contact information. You have helped me a lot for most of my stuff. Dear Norwid Sir, I have already tried your trick f(x), g(x), etc. but it could not help me. I have I have tried to put all the plots and fits into a single plot command (an example in the test.gnu file is mentioned) and it gave me error "test.gnu", line 23: undefined variable: fit Here are my data files https://we.tl/t-kOdOPfzrcK <https://we.tl/t-kOdOPfzrcK> I need all data in a single block. For a sample plot (it is for a single curve) I have kept a standared-plot.png file in the above data. regards Rekha On Sat, Jul 4, 2020 at 9:59 PM theozh <th...@gm...> wrote: > check the answer there: > > > https://stackoverflow.com/questions/62726501/how-to-merge-all-plots-in-one-window-in-gnuplot > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- Best wishes Ms. Rekha Teaching Assistant, Department of Physics RK college, Jaipur, India Mob.: +11 90-95 790 71 697 Email: rek...@gm... |
|
From: theozh <th...@gm...> - 2020-07-04 16:29:09
|
check the answer there: https://stackoverflow.com/questions/62726501/how-to-merge-all-plots-in-one-window-in-gnuplot |
|
From: Norwid B. <nb...@ya...> - 2020-07-04 16:16:59
|
Dear Rekha,
my understanding is that you have one file of data and the script may
perform the fits sequentially (using 1:2, using 1:3, using 1:4, etc.).
The structure of the underlying function seems to be the same for all of
them, too, f(x) = (a0 + a1/x).
May renaming the functions be an option for you, e.g. f1(x), f2(x), f3(x),
thus creating to discernible fits? I speculate this requires some change
in the script used (the example covers only two data):
f1(x) = (a0 + a1/x)
fit f1(x) 'test.data' using 1:2 via a0,a1
plot 'test.data' using 1:2 w points pt 1 t , f1(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
f2(x) = (a0 + a1/x)
fit f2(x) 'test.data' using 1:3 via a0,a1
plot 'test.data' using 1:3 w points pt 1 t , f2(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
Using the integer count may yield a script easier to maintain and expand
than using a set of functions named with changing letters, e.g. f(x), g(x),
h(x), etc.
If so, because of similarity in these blocks and the predictable changes
between them, maybe this may be parameterized once; you would have one
block of definition only. When calling for this function, its sole variable
then were n to perform n fits / plot n curves; there wouldn't be a need
to write n blocks (dry versus wet programming principle).
Norwid
|
|
From: rekha s. <rek...@gm...> - 2020-07-04 15:04:58
|
Dear GNUplot users,
I am plotting some data with some fitting function.
My code is
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:2 via a0,a1
plot 'test.data' using 1:2 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
fit f(x) 'test.data' using 1:3 via a0,a1
plot 'test.data' using 1:3 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:4 via a0,a1
plot 'test.data' using 1:4 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:5 via a0,a1
plot 'test.data' using 1:5 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:6 via a0,a1
plot 'test.data' using 1:6 w points pt 1 t , f(x) t sprintf("K_{fit} = a_0
+ a_1/T", a0)
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:7 via a0,a1
plot 'test.data' using 1:7 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:8 via a0,a1
plot 'test.data' using 1:8 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
f(x) = (a0 + a1/x)
fit f(x) 'test.data' using 1:9 via a0,a1
plot 'test.data' using 1:9 w points pt 1 t , f(x) t sprintf("K_{fit} =
a_0 + a_1/T", a0)
Using this code, I am getting a plot in eight boxes while I want to plot in
a single box.
Is there any workaround for this issue in gnuplot so that I can plot all
above in a single box?
Any help will be highly appreciated.
Regards
Rekha
--
|
|
From: Adam T. <ath...@at...> - 2020-06-29 20:22:42
|
On a "points" type plot, where I'm using "linecolor variable", I'm trying to construct a legend showing the different colors and their respective values. I have yet to successfully construct a plot command with multiple "keyentry" commands that works as expected - so far, all I ever get is a single additional item. The examples in the manual and in custom_key.dem are ... not helpful, in that I've been unable to generalize them. Help, please? Thanks, -Adam Thompson ath...@at... |
|
From: Jon <dev...@gm...> - 2020-06-24 08:00:29
|
Wow! This is likely the case. Thank you so much for your explanation.
Sincerely,
Jon
On 6/24/20, Ethan Merritt <eam...@gm...> wrote:
> On Tuesday, 23 June 2020 14:26:41 PDT Jon wrote:
>> Hi,
>>
>> I am trying to execute a script ssss.gn within gnuplot 5.2.2 in
>> linuxmint 18.2 including the following lines
>> pwdd="`pwd`"
>> do for [ dir in "4.1 4.15 4.2 4.25 4.3 "] {
>> print dir
>> cd dir."/right/here/waiting/"
>> ef=`head -n 1 DOSCAR | awk '{print $5}'`
>> print ef
>> cd pwdd
>> }
>>
>> but it complains
>
> I do not fully understand this myself, but I do know how avoid the problem.
> There is a subtle difference between
> foo = "`some command`"
> and
> foo = system("some command")
>
> in that the back-quote version is evaluated during command parsing,
> while the system() command is evaluated during execution.
> I am not sure why exactly that matters in your case but apparently it does.
>
> You can fix it by replacing the back-quotes with a system command
>
> pwdd = system("pwd")
> do for [ dir in "4.1 4.15 4.2 4.25 4.3 "] {
> print dir
> cd dir."/right/here/waiting/"
> ef = system("head -n 1 DOSCAR | awk '{print $5}'")
> print ef
> cd pwdd
> }
>
>> gnuplot> load "ssss.gn"
>> head: cannot open 'DOSCAR' for reading: No such file or directory
>> 4.1
>> line 5: constant expression required
>>
>> but the file does exist under the directory, why would it complain
>> file not existing
>>
>> Another confusing observation is the error concerning nonexistence of
>> DOSCAR comes before the print statement in the script. Why is that?
>
> It is a symptom of the back-quote evaluation occuring during an
> earlier stage of processing than the loop execution.
>
> Ethan
>
>
>>
>> Thanks,
>>
>> Sincerely,
>> Jon
>
>
>
>
|
|
From: Ethan M. <eam...@gm...> - 2020-06-24 05:04:53
|
On Tuesday, 23 June 2020 14:26:41 PDT Jon wrote:
> Hi,
>
> I am trying to execute a script ssss.gn within gnuplot 5.2.2 in
> linuxmint 18.2 including the following lines
> pwdd="`pwd`"
> do for [ dir in "4.1 4.15 4.2 4.25 4.3 "] {
> print dir
> cd dir."/right/here/waiting/"
> ef=`head -n 1 DOSCAR | awk '{print $5}'`
> print ef
> cd pwdd
> }
>
> but it complains
I do not fully understand this myself, but I do know how avoid the problem.
There is a subtle difference between
foo = "`some command`"
and
foo = system("some command")
in that the back-quote version is evaluated during command parsing,
while the system() command is evaluated during execution.
I am not sure why exactly that matters in your case but apparently it does.
You can fix it by replacing the back-quotes with a system command
pwdd = system("pwd")
do for [ dir in "4.1 4.15 4.2 4.25 4.3 "] {
print dir
cd dir."/right/here/waiting/"
ef = system("head -n 1 DOSCAR | awk '{print $5}'")
print ef
cd pwdd
}
> gnuplot> load "ssss.gn"
> head: cannot open 'DOSCAR' for reading: No such file or directory
> 4.1
> line 5: constant expression required
>
> but the file does exist under the directory, why would it complain
> file not existing
>
> Another confusing observation is the error concerning nonexistence of
> DOSCAR comes before the print statement in the script. Why is that?
It is a symptom of the back-quote evaluation occuring during an
earlier stage of processing than the loop execution.
Ethan
>
> Thanks,
>
> Sincerely,
> Jon
|
|
From: Jon <dev...@gm...> - 2020-06-23 21:26:52
|
Hi,
I am trying to execute a script ssss.gn within gnuplot 5.2.2 in
linuxmint 18.2 including the following lines
pwdd="`pwd`"
do for [ dir in "4.1 4.15 4.2 4.25 4.3 "] {
print dir
cd dir."/right/here/waiting/"
ef=`head -n 1 DOSCAR | awk '{print $5}'`
print ef
cd pwdd
}
but it complains
gnuplot> load "ssss.gn"
head: cannot open 'DOSCAR' for reading: No such file or directory
4.1
line 5: constant expression required
but the file does exist under the directory, why would it complain
file not existing
Another confusing observation is the error concerning nonexistence of
DOSCAR comes before the print statement in the script. Why is that?
Thanks,
Sincerely,
Jon
|
|
From: Robert D. <rob...@gm...> - 2020-06-01 03:15:23
|
Hi, thanks a lot for creating and maintaining Gnuplot, I have used it a lot for years. I am interested in adapting some of the examples shown on the demo pages, in particular: http://gnuplot.sourceforge.net/demo/complex_trig.html I wonder what is the license for the code samples, http://gnuplot.sourceforge.net/demo/complex_trig.1.gnu and so on. I looked around for a license statement but I didn't find one. I am working on creating some glue code in Maxima to output the commands needed to generate plots like that, and for that purpose I am thinking that I'll adapt some of the examples, and I'm wondering what I should say about those files in my work. Thank you for any guidance, I appreciate your help. best, Robert Dodier |
|
From: Kevin O. <rko...@gm...> - 2020-05-31 04:46:06
|
Thanks, Ethan. On to plan 'B'. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rko...@gm... PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 On Sat, May 30, 2020 at 7:11 PM Ethan Merritt <eam...@gm...> wrote: > On Saturday, 30 May 2020 17:59:18 PDT Kevin Oberman wrote: > > I wanted to pick a dashtype for a plot so tried "test" to see defaults. > > gnuplot> set term gif size 1024, 600 > > > > Terminal type is now 'gif' > > Options are 'nocrop enhanced size 1024,600 font "arial,12.0" ' > > gnuplot> set colors classic > > gnuplot> set output "test.gif > > gnuplot> test > > gnuplot> quit > > > > The dashtypes are all identical solid lines (gif attached but may not > make > > it through filters). > > > > v5.2p8 on FreeBSD 12.1. > > Is this a known issue? > > Yes. > The terminals based on libgd (gif/jpeg/png) do not support dashed lines. > That is a limitation of the library. > > Unfortunately if you need specifically gif there isn't another > direct output option in gnuplot. You would have to use e.g. > pngcairo and convert it to gif in a separate step. > > Ethan > > > > |
|
From: Ethan M. <eam...@gm...> - 2020-05-31 02:11:37
|
On Saturday, 30 May 2020 17:59:18 PDT Kevin Oberman wrote: > I wanted to pick a dashtype for a plot so tried "test" to see defaults. > gnuplot> set term gif size 1024, 600 > > Terminal type is now 'gif' > Options are 'nocrop enhanced size 1024,600 font "arial,12.0" ' > gnuplot> set colors classic > gnuplot> set output "test.gif > gnuplot> test > gnuplot> quit > > The dashtypes are all identical solid lines (gif attached but may not make > it through filters). > > v5.2p8 on FreeBSD 12.1. > Is this a known issue? Yes. The terminals based on libgd (gif/jpeg/png) do not support dashed lines. That is a limitation of the library. Unfortunately if you need specifically gif there isn't another direct output option in gnuplot. You would have to use e.g. pngcairo and convert it to gif in a separate step. Ethan |
|
From: Kevin O. <rko...@gm...> - 2020-05-31 00:59:42
|
I wanted to pick a dashtype for a plot so tried "test" to see defaults. gnuplot> set term gif size 1024, 600 Terminal type is now 'gif' Options are 'nocrop enhanced size 1024,600 font "arial,12.0" ' gnuplot> set colors classic gnuplot> set output "test.gif gnuplot> test gnuplot> quit The dashtypes are all identical solid lines (gif attached but may not make it through filters). v5.2p8 on FreeBSD 12.1. Is this a known issue? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rko...@gm... PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 |
|
From: Giorgio C. <gio...@gm...> - 2020-05-01 10:27:09
|
In the "gnuplot links" page (http://gnuplot.sourceforge.net/links.html), "Programming interfaces" section, "Julia" list, there is a mispelled package name: "*gnuplot.jp (gcalderone)*" should rather be "*Gnuplot.jl (gcalderone)*". Is it possible to correct it? Also, many links in that page are now dead. It may be helpful to update or remove them. Thanks! Giorgio. |
|
From: Ethan M. <eam...@gm...> - 2020-04-21 22:27:45
|
On Tuesday, 21 April 2020 14:45:50 PDT Reginald Beardsley via gnuplot-info wrote: > What is the time epoch date for the time format data? > I want to do curve fits to time data, but have been unable to sort out what date and time is T-zero. In gnuplot version 4 the epoch date was 1 Jan 2000. In gnuplot 5 it was switched to 1 Jan 1970 to conform with unix standard date commands. You should be able to confirm this for your particular gnuplot by typing "help time". Starting with gnuplot version 5.2 there is also an option to use relative time formats %tH %tM %tS. These have no epoch date, they simply convert between a text string and an absolute number of seconds, positive or negative. For these formats T-zero is 0. Ethan |
|
From: Reginald B. <pul...@ya...> - 2020-04-21 21:46:03
|
What is the time epoch date for the time format data? I want to do curve fits to time data, but have been unable to sort out what date and time is T-zero. |
|
From: Ethan M. <eam...@gm...> - 2020-04-21 21:33:16
|
On Tuesday, 21 April 2020 13:33:03 PDT John L. Males wrote:
> Hello,
>
> I have had the data separator set to comma for few years as the
> data is a CSV file.
>
> The issue is the leading comma. It appears that the date
> format assumes the time information is in the first two fields
> of the data.
That has never been true. Aside from that, the introduction of
explicit time conversion functions strptime(), strftime(), and
timecolumn() decoupled the input (datafile columns) and output
(plot axes).
> Ergo the leading comma of the data has caused
> error messages to effect of invalid time from gnuplot which is
> why the data is pre-processed to remove the leading comma of
> the data before processed by gnuplot.
Could you provide an example of this?
I don't understand how you could get an error message about a
leading comma when you have told gnuplot that it is a comma-separated
csv file. Each field being parsed starts by definition _after_ the field
seperator, so it should not be possible for it to see a leading comma.
At worst you should be looking at a column too far to the right because
an extra comma caused it to skip ahead more than intended.
> The issue is not if I can plot the data of a CSV file.
This works here on your snippet of csv data. Season to taste.
set datafile sep comma
total_time(dummy) = strptime("%Y-%m-%d",strcol(2)) + strptime("%H:%M:%S", strcol(3))
plot 'data' using 4:(total_time(0))
If you want time format labels along x, add:
set xtics time format "%H:%M:%S"
and similarly for y
Ethan
> John L. Males
> Toronto, Ontario
> Canada
> 21 April 2020 16:33 -0400 EDT
>
>
>
> Message replied to:
>
> Date: Mon, 20 Apr 2020 22:17:35 +0200
> From: "t.sefzick" <t.s...@gm...>
> To: "John L. Males" <jl...@gm...>
> Cc: eam...@gm..., gnu...@li...,
> t.s...@gm... Subject: Re: [Gnuplot-info] columns with time
> format as "y"
>
>
> > The separator of your data is the comma, so
> >
> > set datafile separator comma
> >
> > splits your data into
> >
> > <empty> date time value1 value2
> >
> > Because of the empty first column you need to start
> > with column 2:
> >
> > set timefmt "%Y-%m-%d,%H:%M:%S"
> > plot "datafile.dat" using 2:4
> >
> > On Mon, Apr 20, 2020 at 08:00:02PM +0000, John L. Males wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Hello,
> > >
> > > As follow on to the OP question I have data format of the
> > > form:
> > >
> > > ,2019-04-16,20:30:00,30522,5
> > > ,2019-04-16,20:31:00,30523,6
> > > ,2019-04-16,20:32:00,30524,7
> > > ,2019-04-16,20:33:00,30525,8
> > > ,2019-04-16,20:34:00,30526,9
> > > ,2019-04-16,20:35:00,30527,10
> > > ,2019-04-16,20:36:00,30528,11
> > > ,2019-04-16,20:37:00,30529,12
> > > ,2019-04-16,20:38:00,30530,13
> > > ,2019-04-16,20:39:00,30531,14
> > >
> > > Yes, the data lines start with "," for reasons I will skip
> > > other than to say this is the data by design.
> > >
> > > I had tried a:
> > >
> > > set timefmt ",%Y-%m-%d,%H:%M:%S"
> > >
> > > a few years ago and again a few months ago with no success.
> > > Just an error message to effect of invalid time format in
> > > data. I have had to add extra external step to filter the
> > > data. The issue is the data is very large so it adds a
> > > couple minutes to filter the data before I can input the
> > > date to gnuplot. I really would like to eliminate the data
> > > filter step that eliminates the leading comma of the data
> > > as this data is processed every 15 minutes for now as I
> > > cannot filter the data every 5 minutes due to the added
> > > filtering step that then uses:
> > >
> > > set timefmt "%Y-%m-%d,%H:%M:%S"
> > >
> > >
> > > John L. Males
> > > Toronto, Ontario
> > > Canada
> > > 20 April 2020 16:00 -0400 EDT
> > >
> > > Message replied to:
> > >
> > > Date: Mon, 20 Apr 2020 12:00:40 -0700
> > > From: Ethan Merritt <eam...@gm...>
> > > To: gnu...@li...
> > > Subject: Re: [Gnuplot-info] columns with time format as "y"
> > >
> > >
> > > > On Monday, 20 April 2020 11:30:03 PDT co...@tr...
> > > > wrote:
> > > > >
> > > > > Hello All,
> > > > >
> > > > > I need help with the following problem:
> > > > >
> > > > > Let's say my input data look like (columns delimited by
> > > > > \t):
> > > > >
> > > > > 2019-04-16 20:30:00 30522 5
> > > > > 2019-04-16 20:31:00 30523 6
> > > > > 2019-04-16 20:32:00 30524 7
> > > > > 2019-04-16 20:33:00 30525 8
> > > > > 2019-04-16 20:34:00 30526 9
> > > > > 2019-04-16 20:35:00 30527 10
> > > > > 2019-04-16 20:36:00 30528 11
> > > > > 2019-04-16 20:37:00 30529 12
> > > > > 2019-04-16 20:38:00 30530 13
> > > > > 2019-04-16 20:39:00 30531 14
> > > > >
> > > > > Column 1 & 2 (space separated) considered as date/time.
> > > > >
> > > > > Plotting Col. 3 or 4 against date/time works fine:
> > > > >
> > > > > set xdata time
> > > > > set timefmt "%Y-%m-%d\t%H:%M:%S"
> > > > > set format x "%d.%m. %H:%M"
> > > > > plot 'my_file.txt' using 1:3 title "col 3" axis x1y1
> > > > > with linespoints pt7 lc 4, '' using 1:4 title "col 4"
> > > > > axis x1y1 with linespoints pt7 lc 7
> > > > >
> > > > > Special feature: Although columns 1 and 2 *together*
> > > > > give the timestamp, only "1:..." is given for "using"
> > > > > statement. This method is often found in examples.
> > > > >
> > > > > But now I would like - don't ask me why - to plot the
> > > > > timestamp against column 3, i.e. column 3 as "x" and the
> > > > > timestamp (columns 1 & 2) as "y".
> > > > >
> > > > > I was trying:
> > > > >
> > > > > set ydata time "%Y-%m-%d\t%H:%M:%S"
> > > > > set timefmt "%Y-%m-%d\t%H:%M:%S"
> > > > > set format y "%d.%m. %H:%M"
> > > > > plot 'my_file.txt' using 3:1 title "col 3" axis x1y1
> > > > > with linespoints pt7 lc 4
> > > > >
> > > > > Result: only date is used for plotting "y", time
> > > > > ignored!
> > > >
> > > > Replace the tab with a space in timefmt:
> > > >
> > > > set timefmt "%Y-%m-%d %H:%M:%S"
> > > >
> > > > The space character in the format will match any
> > > > whitespace sequence, including <tab>.
> > > >
> > > > Ethan
|
|
From: t.sefzick <t.s...@gm...> - 2020-04-21 21:20:22
|
The date format takes the columns of the input data which you specify with the "using" option. For data likes these ,2019-04-16,20:30:00,30522,5 ,2019-04-16,20:31:00,30523,6 and the comma as separator, after the data have been read in by gnuplot the 1st field is empty, the date is in the 2nd one: <empty> 2019-04-16 20:30:00 30522 5 <empty> 2019-04-16 20:31:00 30523 6 So the plot command will use column 2 as x and e.g. column 4 as y: set timefmt "%Y-%m-%d,%H:%M:%S" plot "datafile.dat" using 2:4 On Tue, Apr 21, 2020 at 08:33:03PM +0000, John L. Males wrote: > > Hello, > > I have had the data separator set to comma for few years as the > data is a CSV file. > > The issue is the leading comma. It appears that the date > format assumes the time information is in the first two fields > of the data. Ergo the leading comma of the data has caused > error messages to effect of invalid time from gnuplot which is > why the data is pre-processed to remove the leading comma of > the data before processed by gnuplot. > > The issue is not if I can plot the data of a CSV file. I have > been plotting CSV files for a number of years. I have scripts > that run every 15 minutes creating over 20 plots from 5 > different CSV files for number of years. I like to eliminate > the extra external step that processes the CSV data to remove > the leading comma in the data. The data that is very large > really needs to be refreshed every 5 minutes, but cannot as the > data has to be passed over twice to plot the data with > gnuplot. If I did not have to have the external step to > remove the leading comma in the data then this very large data > could be plotted every 5 minutes. The smaller CSV files also > would plot much faster be eliminating the extra step to remove > the leading comma before gnuplot can process the CSV data. > > > John L. Males > Toronto, Ontario > Canada > 21 April 2020 16:33 -0400 EDT > > > Message replied to: > > Date: Mon, 20 Apr 2020 22:17:35 +0200 > From: "t.sefzick" <t.s...@gm...> > To: "John L. Males" <jl...@gm...> > Cc: eam...@gm..., gnu...@li..., > t.s...@gm... Subject: Re: [Gnuplot-info] columns with time > format as "y" > > > > The separator of your data is the comma, so > > > > set datafile separator comma > > > > splits your data into > > > > <empty> date time value1 value2 > > > > Because of the empty first column you need to start > > with column 2: > > > > set timefmt "%Y-%m-%d,%H:%M:%S" > > plot "datafile.dat" using 2:4 > > > > On Mon, Apr 20, 2020 at 08:00:02PM +0000, John L. Males wrote: > > > > > > Hello, > > > > > > As follow on to the OP question I have data format of the > > > form: > > > > > > ,2019-04-16,20:30:00,30522,5 > > > ,2019-04-16,20:31:00,30523,6 > > > ,2019-04-16,20:32:00,30524,7 > > > ,2019-04-16,20:33:00,30525,8 > > > ,2019-04-16,20:34:00,30526,9 > > > ,2019-04-16,20:35:00,30527,10 > > > ,2019-04-16,20:36:00,30528,11 > > > ,2019-04-16,20:37:00,30529,12 > > > ,2019-04-16,20:38:00,30530,13 > > > ,2019-04-16,20:39:00,30531,14 > > > > > > Yes, the data lines start with "," for reasons I will skip > > > other than to say this is the data by design. > > > > > > I had tried a: > > > > > > set timefmt ",%Y-%m-%d,%H:%M:%S" > > > > > > a few years ago and again a few months ago with no success. > > > Just an error message to effect of invalid time format in > > > data. I have had to add extra external step to filter the > > > data. The issue is the data is very large so it adds a > > > couple minutes to filter the data before I can input the > > > date to gnuplot. I really would like to eliminate the data > > > filter step that eliminates the leading comma of the data > > > as this data is processed every 15 minutes for now as I > > > cannot filter the data every 5 minutes due to the added > > > filtering step that then uses: > > > > > > set timefmt "%Y-%m-%d,%H:%M:%S" > > > > > > > > > John L. Males > > > Toronto, Ontario > > > Canada > > > 20 April 2020 16:00 -0400 EDT > > > > > > > > > Message replied to: > > > > > > Date: Mon, 20 Apr 2020 12:00:40 -0700 > > > From: Ethan Merritt <eam...@gm...> > > > To: gnu...@li... > > > Subject: Re: [Gnuplot-info] columns with time format as "y" > > > > > > > > > > On Monday, 20 April 2020 11:30:03 PDT co...@tr... > > > > wrote: > > > > > > > > > > Hello All, > > > > > > > > > > I need help with the following problem: > > > > > > > > > > Let's say my input data look like (columns delimited by > > > > > \t): > > > > > > > > > > 2019-04-16 20:30:00 30522 5 > > > > > 2019-04-16 20:31:00 30523 6 > > > > > 2019-04-16 20:32:00 30524 7 > > > > > 2019-04-16 20:33:00 30525 8 > > > > > 2019-04-16 20:34:00 30526 9 > > > > > 2019-04-16 20:35:00 30527 10 > > > > > 2019-04-16 20:36:00 30528 11 > > > > > 2019-04-16 20:37:00 30529 12 > > > > > 2019-04-16 20:38:00 30530 13 > > > > > 2019-04-16 20:39:00 30531 14 > > > > > > > > > > Column 1 & 2 (space separated) considered as date/time. > > > > > > > > > > Plotting Col. 3 or 4 against date/time works fine: > > > > > > > > > > set xdata time > > > > > set timefmt "%Y-%m-%d\t%H:%M:%S" > > > > > set format x "%d.%m. %H:%M" > > > > > plot 'my_file.txt' using 1:3 title "col 3" axis x1y1 > > > > > with linespoints pt7 lc 4, '' using 1:4 title "col 4" > > > > > axis x1y1 with linespoints pt7 lc 7 > > > > > > > > > > Special feature: Although columns 1 and 2 *together* > > > > > give the timestamp, only "1:..." is given for "using" > > > > > statement. This method is often found in examples. > > > > > > > > > > But now I would like - don't ask me why - to plot the > > > > > timestamp against column 3, i.e. column 3 as "x" and the > > > > > timestamp (columns 1 & 2) as "y". > > > > > > > > > > I was trying: > > > > > > > > > > set ydata time "%Y-%m-%d\t%H:%M:%S" > > > > > set timefmt "%Y-%m-%d\t%H:%M:%S" > > > > > set format y "%d.%m. %H:%M" > > > > > plot 'my_file.txt' using 3:1 title "col 3" axis x1y1 > > > > > with linespoints pt7 lc 4 > > > > > > > > > > Result: only date is used for plotting "y", time > > > > > ignored! > > > > > > > > Replace the tab with a space in timefmt: > > > > > > > > set timefmt "%Y-%m-%d %H:%M:%S" > > > > > > > > The space character in the format will match any > > > > whitespace sequence, including <tab>. > > > > > > > > Ethan |