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...> - 2018-10-18 19:00:26
|
sorry, there were errors in the code.
This should work now...
### finding thresholds with gnuplot
reset
# generate some dummy data
set print $Data
do for [i=1:100] {
print sprintf("%g %.3f",i*2+rand(0), rand(0)*10+i)
}
set print
print $Data
THRESHOLD = 60
set multiplot layout 2,1
set key top left
# $Dummy holds (difference to threshold) squared
set table $Dummy
plot $Data u 1:(($2-THRESHOLD)**2) with table
unset table
set logscale y
plot $Dummy u 1:2 w l
# find minimum with stats
stats $Dummy u 1:2 nooutput
MINIMUM = STATS_index_min_y
# find x and y value of $Data
set table $Dummy
plot $Data u (MIN_X=$1,$1):(MIN_Y=$2,$2) every ::MINIMUM::MINIMUM with table
unset table
set label 1 sprintf("Value %g at %g",MIN_Y, MIN_X) at graph 0.5, graph 0.9
set arrow 1 from first MIN_X, graph 0 to first MIN_X, THRESHOLD
unset logscale y
plot $Data u 1:2, THRESHOLD w l
unset multiplot
### end gnuplot code
|
|
From: theozh <th...@gm...> - 2018-10-18 18:45:32
|
Hi,
I would like to find the x-value of some data when its y-value passes a certain threshold.
The curves can be very different, so I think that fitting to a certain function is probably not a solution.
I know gnuplot is probably not made for that and other tools should be used. However, sometimes it is very convenient if there is a pure gnuplot solution.
The basic idea is:
Subtracting the threshold from the data, take the square of this and look for the minimum.
Maybe, I am trying way too complicated? If there are better ways please let me know.
Thanks, Theo.
The following sample generates some simple dummy data to illustrate.
### finding thresholds with gnuplot
reset
# generate some dummy data
set print $Data
do for [i=1:100] {
print sprintf("%g %.3f",i*2+rand(0), rand(0)*10+i)
}
set print
print $Data
THRESHOLD = 60
# $Data2 holds (difference to threshold) squared
set table $Dummy
plot $Data u 1:(($2-THRESHOLD)**2) with table
unset table
# find minimum with stats
stats $Data2 u 1:2 nooutput
MINIMUM = STATS_index_min_y
# find x and y value of $Data
set table $Dummy
plot $Data u (MIN_X = $1,1):(MIN_Y=$2,$2) every ::MINIMUM::MINIMUM with table
unset table
set key top left
set multiplot layout 2,1
set label 1 sprintf("Value %g at %g",MIN_Y, MIN_X) at graph 0.5, graph 0.9
set arrow 1 from first MIN_X, graph 0 to first MIN_X, THRESHOLD
unset logscale y
plot $Data u 1:2, THRESHOLD w l
set logscale y
plot $Data2 u 1:2 w l
unset multiplot
### end gnuplot code
|
|
From: Patrick D. <pd...@gm...> - 2018-10-14 06:14:57
|
>
> On Sunday, 14 October 2018 05:34:59 Patrick Dupre wrote:
> > >
> > > On Sunday, 14 October 2018 03:39:38 Patrick Dupre wrote:
> > > > y_lin(x,a) = a * x
> > > > set table "tmp.asc" ; plot [-10:10] '+' u 1:(y_lin (x,2)) with table ; unset table
> > > > set table "tmp.asc" ; plot [-10:10] '+' u (sprintf("%g",$1)):(y_lin (x,2)) with table ; unset table
> > >
> > > Those both produce the same output for me when tested with
> > > versions 5.2.0 5.2.5 (current) and development version 5.3
> > >
> > > I do see NaN output fields when testing with version 5.0.7
> > >
> > > So if you are running 5.0 I think the answer is that "with table" didn't
> > > gain the ability to handle string data columns until version 5.2
> > > If you are running 5.2 please tell us the precise gnuplot version
> > > and operating system environment you are running.
> > >
> > > Ethan
> > >
> > I am running 5.0.6 from the fedora 28 distribution
> > It looks like than even fedora 29 comes with the version 5.0.6
>
> Huh. I had the impression that Fedora was known for "bleeding edge"
> software versions.
>
> Since gnuplot 5.2 came out more than a year ago I would have thought
> it would have been picked up by now. FWIW Ubuntu and Mageia are both
> on 5.2.2 for their "upcoming release" spins, and OpenSUSE is fully current
> at 5.2.5. Maybe it would be worth poking the Fedora packaging team?
>
> Ethan
https://bugzilla.redhat.com/show_bug.cgi?id=1457252
https://bugzilla.redhat.com/show_bug.cgi?id=1476616
|
|
From: Ethan A M. <eam...@gm...> - 2018-10-14 04:15:56
|
On Sunday, 14 October 2018 05:34:59 Patrick Dupre wrote:
> >
> > On Sunday, 14 October 2018 03:39:38 Patrick Dupre wrote:
> > > y_lin(x,a) = a * x
> > > set table "tmp.asc" ; plot [-10:10] '+' u 1:(y_lin (x,2)) with table ; unset table
> > > set table "tmp.asc" ; plot [-10:10] '+' u (sprintf("%g",$1)):(y_lin (x,2)) with table ; unset table
> >
> > Those both produce the same output for me when tested with
> > versions 5.2.0 5.2.5 (current) and development version 5.3
> >
> > I do see NaN output fields when testing with version 5.0.7
> >
> > So if you are running 5.0 I think the answer is that "with table" didn't
> > gain the ability to handle string data columns until version 5.2
> > If you are running 5.2 please tell us the precise gnuplot version
> > and operating system environment you are running.
> >
> > Ethan
> >
> I am running 5.0.6 from the fedora 28 distribution
> It looks like than even fedora 29 comes with the version 5.0.6
Huh. I had the impression that Fedora was known for "bleeding edge"
software versions.
Since gnuplot 5.2 came out more than a year ago I would have thought
it would have been picked up by now. FWIW Ubuntu and Mageia are both
on 5.2.2 for their "upcoming release" spins, and OpenSUSE is fully current
at 5.2.5. Maybe it would be worth poking the Fedora packaging team?
Ethan
|
|
From: Patrick D. <pd...@gm...> - 2018-10-14 04:01:43
|
> >
> > On Sunday, 14 October 2018 03:39:38 Patrick Dupre wrote:
> > > y_lin(x,a) = a * x
> > > set table "tmp.asc" ; plot [-10:10] '+' u 1:(y_lin (x,2)) with table ; unset table
> > > set table "tmp.asc" ; plot [-10:10] '+' u (sprintf("%g",$1)):(y_lin (x,2)) with table ; unset table
> >
> > Those both produce the same output for me when tested with
> > versions 5.2.0 5.2.5 (current) and development version 5.3
> >
> > I do see NaN output fields when testing with version 5.0.7
> >
> > So if you are running 5.0 I think the answer is that "with table" didn't
> > gain the ability to handle string data columns until version 5.2
> > If you are running 5.2 please tell us the precise gnuplot version
> > and operating system environment you are running.
> >
> > Ethan
> >
> I am running 5.0.6 from the fedora 28 distribution
> It looks like than even fedora 29 comes with the version 5.0.6
>
Actually, I had to recompile the version of the distribution to get the cwerf function.
I guess that I have to do the same with the version 5.2
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Patrick D. <pd...@gm...> - 2018-10-14 03:35:09
|
>
> On Sunday, 14 October 2018 03:39:38 Patrick Dupre wrote:
> > y_lin(x,a) = a * x
> > set table "tmp.asc" ; plot [-10:10] '+' u 1:(y_lin (x,2)) with table ; unset table
> > set table "tmp.asc" ; plot [-10:10] '+' u (sprintf("%g",$1)):(y_lin (x,2)) with table ; unset table
>
> Those both produce the same output for me when tested with
> versions 5.2.0 5.2.5 (current) and development version 5.3
>
> I do see NaN output fields when testing with version 5.0.7
>
> So if you are running 5.0 I think the answer is that "with table" didn't
> gain the ability to handle string data columns until version 5.2
> If you are running 5.2 please tell us the precise gnuplot version
> and operating system environment you are running.
>
> Ethan
>
I am running 5.0.6 from the fedora 28 distribution
It looks like than even fedora 29 comes with the version 5.0.6
|
|
From: Ethan A M. <eam...@gm...> - 2018-10-14 03:01:27
|
On Sunday, 14 October 2018 03:39:38 Patrick Dupre wrote:
> y_lin(x,a) = a * x
> set table "tmp.asc" ; plot [-10:10] '+' u 1:(y_lin (x,2)) with table ; unset table
> set table "tmp.asc" ; plot [-10:10] '+' u (sprintf("%g",$1)):(y_lin (x,2)) with table ; unset table
Those both produce the same output for me when tested with
versions 5.2.0 5.2.5 (current) and development version 5.3
I do see NaN output fields when testing with version 5.0.7
So if you are running 5.0 I think the answer is that "with table" didn't
gain the ability to handle string data columns until version 5.2
If you are running 5.2 please tell us the precise gnuplot version
and operating system environment you are running.
Ethan
|
|
From: Patrick D. <pd...@gm...> - 2018-10-14 01:39:48
|
===========================================================================
Patrick DUPRÉ | | email: pd...@gm...
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
> Sent: Saturday, October 13, 2018 at 7:16 PM
> From: "Ethan A Merritt" <eam...@gm...>
> To: gnu...@li...
> Cc: "Patrick Dupre" <pd...@gm...>
> Subject: Re: [Gnuplot-info] sprintf
>
> On Friday, 12 October 2018 03:08:49 Patrick Dupre wrote:
> > Hello,
> >
> > When I use:
> > set table "0f_Lor_fitted.asc" ; plot [x_min:x_max] '+' u 1:(ampl*Lor_D(x-x0,W)+offset+y_lin(x-x0,slope)) with table ; unset table
> >
> > I get a proper file.
> > But, when I do (to get more control on the data format)
> >
> > set table "0f_Lor_fitted.asc" ; plot [x_min:x_max] '+' u (sprintf("%g,$1)):(ampl*Lor_D(x-x0,W)+offset+y_lin(x-x0,slope)) with table ; unset table
> >
> > I get:
> > nan
> > instead of the expected value.
> >
> > I thought that I did like it is described in the manual.
> > What did I miss?
>
> When I try to reproduce this problem I get an error because
> there is a missing quote to terminate "%g". If I add the
> quote, then it works with no error. But I had to invent
> functions and constants fro ampl Lor_D W and so on.
> Can you either provide the full script or reduce the problem
> to a stand-alone command?
Here is an example
y_lin(x,a) = a * x
set table "tmp.asc" ; plot [-10:10] '+' u 1:(y_lin (x,2)) with table ; unset table
set table "tmp.asc" ; plot [-10:10] '+' u (sprintf("%g",$1)):(y_lin (x,2)) with table ; unset table
|
|
From: theozh <th...@gm...> - 2018-10-13 22:21:05
|
Thank you for your comments. @John > Does this help? > https://stackoverflow.com/questions/17791828/gnuplot-date-time-in-x-axis No, not helpful in my case. @Alan well, in my 5.2 manual there is %U and %w but no %u. I'm not sure if it can be used for what I want to achieve. My current solution looks like the following (see example below). If it can be done simpler, I would be happy to learn about it. Disadvantage: I have to set xtics manually and don't see how to set mxtics. ### plot as a function of weekday reset $BirthData <<EOD # "%a" "%d.%m.%Y" "%H:%M:%S" "SomeValue" "time in s from 1.1.1970" Mon 13.02.1922 12:34:34 85.3 -1511004326.0 Tue 15.5.1962 04:12:18 73.1 -240868062.0 Wed 11.08.1948 09:12:56 97.3 -675010024.0 Thu 01.01.1970 00:00:00 32.7 0.0 Fri 31.12.1999 09:09:09 5.3 946631349.0 Sat 13.10.2018 18:45:01 45.2 1539456301.0 Sun 15.5.1966 04:12:18 17.4 -114637662.0 EOD set multiplot layout 2,1 set xdata time set format x "%Y" plot $BirthData u (timecolumn(2,"%d.%m.%Y")):4 lt 6 lc rgb "blue" # define formula Weekdaytime(t) = (floor(t/86400. + 3.)%7 + 7)%7 + t/86400. - floor(t/86400.) # 86400 seconds per day # 0=Mon, 1=Tue, 2=Wed, 3=Thu, 4=Fri, 5=Sat, 6=Sun # (... %7+7)%7 to account for negative time before 1.1.1970 # add 3 days because time=0 is 1.1.1970 and was a Thursday set xdata set format "%g" set xrange[0:7] set xtics ("Mon" 0, "Tue" 1, "Wed" 2, "Thu" 3, "Fri" 4, "Sat" 5, "Sun" 6) plot $BirthData u (Weekdaytime(timecolumn(2,"%d.%m.%Y %H:%M:%S"))):4 lt 6 lc rgb "red" not unset multiplot ### end of code |
|
From: Ethan A M. <eam...@gm...> - 2018-10-13 18:16:49
|
On Saturday, 13 October 2018 19:19:29 Gunter Königsmann wrote: > Many compilers nowadays output warnings on encountering sprintf instead of an snprintf... This particular "sprintf" is a gnuplot internal function that does type checking of the gnuplot user variables and then wraps calls to a C library snprintf. Ethan |
|
From: Gunter K. <gu...@pe...> - 2018-10-13 17:19:42
|
Many compilers nowadays output warnings on encountering sprintf instead of an snprintf... -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet. |
|
From: Ethan A M. <eam...@gm...> - 2018-10-13 17:16:28
|
On Friday, 12 October 2018 03:08:49 Patrick Dupre wrote:
> Hello,
>
> When I use:
> set table "0f_Lor_fitted.asc" ; plot [x_min:x_max] '+' u 1:(ampl*Lor_D(x-x0,W)+offset+y_lin(x-x0,slope)) with table ; unset table
>
> I get a proper file.
> But, when I do (to get more control on the data format)
>
> set table "0f_Lor_fitted.asc" ; plot [x_min:x_max] '+' u (sprintf("%g,$1)):(ampl*Lor_D(x-x0,W)+offset+y_lin(x-x0,slope)) with table ; unset table
>
> I get:
> nan
> instead of the expected value.
>
> I thought that I did like it is described in the manual.
> What did I miss?
When I try to reproduce this problem I get an error because
there is a missing quote to terminate "%g". If I add the
quote, then it works with no error. But I had to invent
functions and constants fro ampl Lor_D W and so on.
Can you either provide the full script or reduce the problem
to a stand-alone command?
Ethan
|
|
From: BBands <bb...@gm...> - 2018-10-12 21:30:59
|
Does this help? https://stackoverflow.com/questions/17791828/gnuplot-date-time-in-x-axis John On Fri, Oct 12, 2018 at 12:00 PM theozh <th...@gm...> wrote: > > Hello, > is there a way to plot as function of the weekday or as function of weekday+daytime? > > I can plot as function of day and as function of daytime, but haven't yet found a way for weekday or weekday+daytime. > Probably, I have to define a function to convert weekday into a number from 0 to 6 (or 1 to 7) and add the daytime as a fraction? Or maybe I overlooked a simple, obvious way? > In the below example I get "warning: Bad time format in string". Could this be a conflict with locale/language settings? > > Thank you for hints. > Theo. > > The following code should illustrate for testing purpose. > > ### plot as a function of weekday > # generate some random test data > set print $BirthData > do for [i=1:100] { > RandomDate = rand(0)*1.5e9 > RandomNumber = rand(0)*100 > print(strftime("%a %d.%m.%Y %H:%M:%S", RandomDate)." ".sprintf("%g",RandomNumber)) > } > set print > print $BirthData > > set multiplot layout 3,1 > > set xdata time > set format x "%Y" > plot $BirthData u (timecolumn(2,"%d.%m.%Y")):4 > > set format x "%H:%M" > plot $BirthData u (timecolumn(3,"%H:%M")):4 > > set format x "%a" > plot $BirthData u (timecolumn(1,"%a")):4 # does not work! "warning: Bad time format in string" > > unset multiplot > ### end of code > > > > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Alan C. <ala...@gm...> - 2018-10-12 19:36:59
|
I don't begin to understand all that but see %u and %w in the strftime
man page. You can get an integer 1-7 or 0-6.
On 10/12/18, theozh <th...@gm...> wrote:
> Hello,
> is there a way to plot as function of the weekday or as function of
> weekday+daytime?
>
> I can plot as function of day and as function of daytime, but haven't yet
> found a way for weekday or weekday+daytime.
> Probably, I have to define a function to convert weekday into a number from
> 0 to 6 (or 1 to 7) and add the daytime as a fraction? Or maybe I overlooked
> a simple, obvious way?
> In the below example I get "warning: Bad time format in string". Could this
> be a conflict with locale/language settings?
>
> Thank you for hints.
> Theo.
>
> The following code should illustrate for testing purpose.
>
> ### plot as a function of weekday
> # generate some random test data
> set print $BirthData
> do for [i=1:100] {
> RandomDate = rand(0)*1.5e9
> RandomNumber = rand(0)*100
> print(strftime("%a %d.%m.%Y %H:%M:%S", RandomDate)."
> ".sprintf("%g",RandomNumber))
> }
> set print
> print $BirthData
>
> set multiplot layout 3,1
>
> set xdata time
> set format x "%Y"
> plot $BirthData u (timecolumn(2,"%d.%m.%Y")):4
>
> set format x "%H:%M"
> plot $BirthData u (timecolumn(3,"%H:%M")):4
>
> set format x "%a"
> plot $BirthData u (timecolumn(1,"%a")):4 # does not work! "warning: Bad
> time format in string"
>
> unset multiplot
> ### end of code
>
>
>
>
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--
-------------
No, I won't call it "climate change", do you have a "reality problem"? - AB1JX
Cities are cages built to contain excess people and keep them from
cluttering up nature.
Impeach Impeach Impeach Impeach Impeach Impeach Impeach Impeach
|
|
From: theozh <th...@gm...> - 2018-10-12 19:00:20
|
Hello,
is there a way to plot as function of the weekday or as function of weekday+daytime?
I can plot as function of day and as function of daytime, but haven't yet found a way for weekday or weekday+daytime.
Probably, I have to define a function to convert weekday into a number from 0 to 6 (or 1 to 7) and add the daytime as a fraction? Or maybe I overlooked a simple, obvious way?
In the below example I get "warning: Bad time format in string". Could this be a conflict with locale/language settings?
Thank you for hints.
Theo.
The following code should illustrate for testing purpose.
### plot as a function of weekday
# generate some random test data
set print $BirthData
do for [i=1:100] {
RandomDate = rand(0)*1.5e9
RandomNumber = rand(0)*100
print(strftime("%a %d.%m.%Y %H:%M:%S", RandomDate)." ".sprintf("%g",RandomNumber))
}
set print
print $BirthData
set multiplot layout 3,1
set xdata time
set format x "%Y"
plot $BirthData u (timecolumn(2,"%d.%m.%Y")):4
set format x "%H:%M"
plot $BirthData u (timecolumn(3,"%H:%M")):4
set format x "%a"
plot $BirthData u (timecolumn(1,"%a")):4 # does not work! "warning: Bad time format in string"
unset multiplot
### end of code
|
|
From: Patrick D. <pd...@gm...> - 2018-10-12 01:08:58
|
Hello,
When I use:
set table "0f_Lor_fitted.asc" ; plot [x_min:x_max] '+' u 1:(ampl*Lor_D(x-x0,W)+offset+y_lin(x-x0,slope)) with table ; unset table
I get a proper file.
But, when I do (to get more control on the data format)
set table "0f_Lor_fitted.asc" ; plot [x_min:x_max] '+' u (sprintf("%g,$1)):(ampl*Lor_D(x-x0,W)+offset+y_lin(x-x0,slope)) with table ; unset table
I get:
nan
instead of the expected value.
I thought that I did like it is described in the manual.
What did I miss?
Thank
===========================================================================
Patrick DUPRÉ | | email: pd...@gm...
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
|
|
From: Edmond R. <ero...@gm...> - 2018-10-05 21:54:47
|
Thank you. dx is not quite what I was looking for. I wish do do something like: plot "file" binary array=18000x4500 flipy format='%int16 using (($1/50.0)-180):(($2/50.0)-90):3 ........... But I can only do that if I am reading an ascii matrix, but not with a binary. It is just that making the ascii files takes time and space, but the real issue is how long gnuplot spends reading and plotting a large ascii file. The binary is much faster. There are options such as x2range and y2range, but I preferred manipulating the index values On Thu, Sep 27, 2018 at 7:28 PM Ethan A Merritt <eam...@gm...> wrote: > > On Thursday, 27 September 2018 16:56:53 Edmond Rodriguez wrote: > > So I can read a matrix of binary data and make an image plot like this: > > > > plot "file" binary array=18000x4500 flipy format='%int16' with image > > > > But I want to manipulate the points with using keyword. > > Gnuplot does not support that. > > > > But I cannot. > > > > So I have to do this: > > > > dump the binary file to ascii: > > od -v -An -t d2 -w36000 file | tac > file.asc > > > > Then I can plot: > > plot 'file.asc' matrix using 1:2:3 with image palette > > or change values: > > plot 'file.asc' matrix using ($1/50):2:3 with image palette > > > > How do I accomplish the "using" in the binary method > > > > The reason I want to do this is so I can do math on the numbers. > > > > I want to do something like this but I am not getting it right: > > > > plot "file" binary array=18000x4500 flipy format='%int16' using > > ($1/50):2:3 with image > > I take it that what you want is to shrink the range of x coordinate > occupied by the image. There is a keyword for that > plot "file" binary array=18000x4500 dx=0.02 dy=1.0 ... > > For examples see > http://gnuplot.sourceforge.net/demo_5.3/barchart_art.html |
|
From: Patrick D. <pd...@gm...> - 2018-10-01 12:57:42
|
Hello,
I get
"fit.gnu", line 97: Function evaluation yields NaN ("not a number")
during a fit. It may by due to a guessed values out of range
setting FIT_LIMIT does not help.
Thank.
===========================================================================
Patrick DUPRÉ | | email: pd...@gm...
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
|
|
From: Ethan A M. <eam...@gm...> - 2018-09-27 23:28:43
|
On Thursday, 27 September 2018 16:56:53 Edmond Rodriguez wrote: > So I can read a matrix of binary data and make an image plot like this: > > plot "file" binary array=18000x4500 flipy format='%int16' with image > > But I want to manipulate the points with using keyword. Gnuplot does not support that. > But I cannot. > > So I have to do this: > > dump the binary file to ascii: > od -v -An -t d2 -w36000 file | tac > file.asc > > Then I can plot: > plot 'file.asc' matrix using 1:2:3 with image palette > or change values: > plot 'file.asc' matrix using ($1/50):2:3 with image palette > > How do I accomplish the "using" in the binary method > > The reason I want to do this is so I can do math on the numbers. > > I want to do something like this but I am not getting it right: > > plot "file" binary array=18000x4500 flipy format='%int16' using > ($1/50):2:3 with image I take it that what you want is to shrink the range of x coordinate occupied by the image. There is a keyword for that plot "file" binary array=18000x4500 dx=0.02 dy=1.0 ... For examples see http://gnuplot.sourceforge.net/demo_5.3/barchart_art.html |
|
From: Edmond R. <ero...@gm...> - 2018-09-27 20:57:12
|
So I can read a matrix of binary data and make an image plot like this: plot "file" binary array=18000x4500 flipy format='%int16' with image But I want to manipulate the points with using keyword. But I cannot. So I have to do this: dump the binary file to ascii: od -v -An -t d2 -w36000 file | tac > file.asc Then I can plot: plot 'file.asc' matrix using 1:2:3 with image palette or change values: plot 'file.asc' matrix using ($1/50):2:3 with image palette How do I accomplish the "using" in the binary method The reason I want to do this is so I can do math on the numbers. I want to do something like this but I am not getting it right: plot "file" binary array=18000x4500 flipy format='%int16' using ($1/50):2:3 with image Thanks for any clues |
|
From: theozh <th...@gm...> - 2018-09-14 19:19:59
|
a (strange) workaround might be the following...
Assuming your original data has the following structure:
x y z dx dy dz
you can create a dataset which contains the x,y,z errorbars as data each separated by at least 2 empty lines.
When you plot this dataset, lines will not be connected and will look like x,y,z errorbars.
Maybe this is somehow helpful.
Theo.
####### 3D plot with "x,y,z errorbars"
$Data <<EOD
# x y z dx dy dz
0.0 0.0 0.0 0.1 0.1 0.1
1.0 0.5 1.0 0.2 0.2 0.2
2.0 2.0 1.5 0.5 0.5 0.5
4.0 3.0 1.0 1.0 0.6 0.4
EOD
stats $Data
set print $ErrXYZ
do for [i=0:STATS_records-1] {
set table $Dummy
plot $Data u ($1-$4):2:3 every ::i::i with table
plot $Data u ($1+$4):2:3 every ::i::i with table
print $Dummy
print "\n"
set table $Dummy
plot $Data u 1:($2-$5):3 every ::i::i with table
plot $Data u 1:($2+$5):3 every ::i::i with table
print $Dummy
print "\n"
set table $Dummy
plot $Data u 1:2:($3-$6) every ::i::i with table
plot $Data u 1:2:($3+$6) every ::i::i with table
print $Dummy
print "\n"
}
unset table
set print
# print $ErrXYZ #uncomment this line if you want to print the dataset
splot $Data u 1:2:3 w lp, $ErrXYZ w lp ls 7 ps 0.5 lc rgb "red"
# end of code
|
|
From: Patrick D. <pd...@gm...> - 2018-09-13 21:46:47
|
Hello, I would like to plot a 3D picture by using splot and x, y, and z error bars. I did not see this option. Is it possible ? Thank =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France =========================================================================== |
|
From: Patrick D. <pd...@gm...> - 2018-08-22 20:29:28
|
Hello, When I fit data with the weighting option (xyerror), I get final sum of squares of residuals : 22.7527 rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.12429 variance of residuals (reduced chisquare) = WSSR/ndf : 1.26404 But I never get the unweighted sum of squares of residuals (Chi2) ie. \sum (f(x_i)-y_i)^2 How, can I make this calculation which is provided with a non weighting option? Thank. =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France =========================================================================== |
|
From: Ethan M. <eam...@gm...> - 2018-08-22 19:44:50
|
Many possible options. The first three that come to mind are
(1) You can now set line colors to anything you like.
I don't remember what they were for the eps terminal in version 4.0 but for
the purpose of illustrating, let's say it was red, blue, green, magenta.
You can redefine the first four line colors to this sequence by saying
set linetype 1 linecolor "red"
set linetype 2 linecolor "blue"
set linetype 3 linecolor "green"
set linetype 4 linecolor "magenta"
This will affect all terminals, not just the eps terminal
(2) That red/blue/green/magenta sequence is the "classic" one, so you
should get the same result by saying
set colors classic
in gnuplot version 5
(3) The definitions you show above are read from the file prologue.ps
You could edit this file in place (will affect all future use of the
gnuplot postscript terminals) or you could make a copy in a new directory
and edit the copy. You can then use the gnuplot command
set psdir <new-directory-name>
so the the postscript terminals will use the edited copy rather than the
system-wide copy. This will affect only the current gnuplot session, or
until you say "unset psdir".
On Wed, Aug 22, 2018 at 11:44 AM, Jelle de Jong <jel...@po...>
wrote:
> I came a bit further by looking at the generated eps files.
>
> I found the bellow default colors (this whole block is not present with
> the old generated eps with gnuplot 4.0 patchlevel 0) and if I change the
> values in the eps file the lines color will change. So I am looking for
> the behaviour of gnuplot 4.0 patchlevel 0 (this was the old working
> version).
>
> Is there a way to not have the default line colors present, or otherwise
> what is the way to set the default line colors to other values, because
> altering them may be a workaround.
>
> gnuplot 4.6 patchlevel 2
>
> % Default Line colors
> /LCw {1 1 1} def
> /LCb {0 0 0} def
> /LCa {0 0 0} def
> /LC0 {1 0 0} def
> /LC1 {0 1 0} def
> /LC2 {0 0 1} def
> /LC3 {1 0 1} def
> /LC4 {0 1 1} def
> /LC5 {1 1 0} def
> /LC6 {0 0 0} def
> /LC7 {1 0.3 0} def
> /LC8 {0.5 0.5 0.5} def
>
> gnuplot 5.2 patchlevel 4
>
> % Classic Line colors (version 5.0)
> /LCw {1 1 1} def
> /LCb {0 0 0} def
> /LCa {0 0 0} def
> /LC0 {1 0 0} def
> /LC1 {0 1 0} def
> /LC2 {0 0 1} def
> /LC3 {1 0 1} def
> /LC4 {0 1 1} def
> /LC5 {1 1 0} def
> /LC6 {0 0 0} def
> /LC7 {1 0.3 0} def
> /LC8 {0.5 0.5 0.5} def
>
> Kind regards,
>
> Jelle de Jong
>
>
>
> On 15/08/18 18:34, Jelle de Jong wrote:
> > On 15/08/18 17:19, Kevin Oberman wrote:
> >> On Wed, Aug 15, 2018 at 7:51 AM Jelle de Jong <
> jel...@po...
> >> <mailto:jel...@po...>> wrote:
> >>
> >> Hello everybody,
> >>
> >> upgrade from gnuplot 4.0 patchlevel 0 to -> gnuplot 4.6 patchlevel 2
> >>
> >> I attached two picture of graphs that generated different line
> colours.
> >>
> >> I can not find any colour definitions in the gnuplot input files.
> >>
> >> I am trying to figure out what to look for in the gnuplot input
> files so
> >> I can change the colours back. Can somebody help?
> >>
> >> For what I can see there are lt (linetype) 1 to 5 used.
> >>
> >> Can I output the linetype colour mapping/pallet somehow?
> >>
> >> This change was documented in the v5 release notes.
> >>
> >> If you want the old colors back, you may explicitly specify them or use
> >> the command "set colors classic".
> >
> > Thank you for taking the time to reply, very much appreciated!
> >
> > I am running gnuplot 4.6 patchlevel 2
> >
> > There does not seem to be a set colors classic command, is there
> > something else I can do to get the classic colors back?
> >
> > Kind regards,
> >
> > Jelle de Jong
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > Membership management via: https://lists.sourceforge.net/
> lists/listinfo/gnuplot-info
> >
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/
> lists/listinfo/gnuplot-info
>
|
|
From: Jelle de J. <jel...@po...> - 2018-08-22 18:44:57
|
I came a bit further by looking at the generated eps files.
I found the bellow default colors (this whole block is not present with
the old generated eps with gnuplot 4.0 patchlevel 0) and if I change the
values in the eps file the lines color will change. So I am looking for
the behaviour of gnuplot 4.0 patchlevel 0 (this was the old working
version).
Is there a way to not have the default line colors present, or otherwise
what is the way to set the default line colors to other values, because
altering them may be a workaround.
gnuplot 4.6 patchlevel 2
% Default Line colors
/LCw {1 1 1} def
/LCb {0 0 0} def
/LCa {0 0 0} def
/LC0 {1 0 0} def
/LC1 {0 1 0} def
/LC2 {0 0 1} def
/LC3 {1 0 1} def
/LC4 {0 1 1} def
/LC5 {1 1 0} def
/LC6 {0 0 0} def
/LC7 {1 0.3 0} def
/LC8 {0.5 0.5 0.5} def
gnuplot 5.2 patchlevel 4
% Classic Line colors (version 5.0)
/LCw {1 1 1} def
/LCb {0 0 0} def
/LCa {0 0 0} def
/LC0 {1 0 0} def
/LC1 {0 1 0} def
/LC2 {0 0 1} def
/LC3 {1 0 1} def
/LC4 {0 1 1} def
/LC5 {1 1 0} def
/LC6 {0 0 0} def
/LC7 {1 0.3 0} def
/LC8 {0.5 0.5 0.5} def
Kind regards,
Jelle de Jong
On 15/08/18 18:34, Jelle de Jong wrote:
> On 15/08/18 17:19, Kevin Oberman wrote:
>> On Wed, Aug 15, 2018 at 7:51 AM Jelle de Jong <jel...@po...
>> <mailto:jel...@po...>> wrote:
>>
>> Hello everybody,
>>
>> upgrade from gnuplot 4.0 patchlevel 0 to -> gnuplot 4.6 patchlevel 2
>>
>> I attached two picture of graphs that generated different line colours.
>>
>> I can not find any colour definitions in the gnuplot input files.
>>
>> I am trying to figure out what to look for in the gnuplot input files so
>> I can change the colours back. Can somebody help?
>>
>> For what I can see there are lt (linetype) 1 to 5 used.
>>
>> Can I output the linetype colour mapping/pallet somehow?
>>
>> This change was documented in the v5 release notes.
>>
>> If you want the old colors back, you may explicitly specify them or use
>> the command "set colors classic".
>
> Thank you for taking the time to reply, very much appreciated!
>
> I am running gnuplot 4.6 patchlevel 2
>
> There does not seem to be a set colors classic command, is there
> something else I can do to get the classic colors back?
>
> Kind regards,
>
> Jelle de Jong
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|