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: John L. M. <jl...@gm...> - 2020-04-21 20:33:38
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
================================================================
2020-04-21 20:16:43+0000-UTC Time: 1587500203 PC/System time
21 Apr 20:16:43 ntpdate[34041]: ntpdate 4.2.8p12-a (1)
21 Apr 20:16:58 ntpdate[35558]: step time server 216.232.132.31
offset 0.001401 sec
FreeBSD 11.3-STABLE FreeBSD 11.3-STABLE #0 r349903: Thu Jul 11
16:13:47 UTC 2019
ro...@re...:/usr/obj/usr/src/sys/GENERIC
(Work in progress alternative to Linux Kernel of its own right,
Debian, and
other Linux based Kernel distributions determined.)
Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz
Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz K8-class
CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz
K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz
(1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @
1.40GHz (1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M
CPU @ 1.40GHz (1396.86-MHz K8-class CPU)
dev.cpu.0.temperature: 60.0C
dev.cpu.1.temperature: 60.0C
dev.cpu.2.temperature: 56.0C
dev.cpu.3.temperature: 56.0C
hw.acpi.thermal.tz0.temperature: 65.1C
vmstat -s:
618156 cpu context switches
67434 device interrupts
11717 software interrupts
408902 traps
53956889 system calls
27 kernel threads created
1727 fork() calls
335 vfork() calls
0 rfork() calls
0 swap pager pageins
0 swap pager pages paged in
0 swap pager pageouts
0 swap pager pages paged out
3773 vnode pager pageins
36603 vnode pager pages paged in
1 vnode pager pageouts
1 vnode pager pages paged out
0 page daemon wakeups
39220 pages examined by the page daemon
0 clean page reclamation shortfalls
0 pages reactivated by the page daemon
75655 copy-on-write faults
429 copy-on-write optimized faults
214323 zero fill pages zeroed
0 zero fill pages prezeroed
2 intransit blocking page faults
448906 total VM faults taken
3540 page faults requiring I/O
0 pages affected by kernel thread creation
68956 pages affected by fork()
11877 pages affected by vfork()
0 pages affected by rfork()
479243 pages freed
0 pages freed by daemon
117279 pages freed by exiting processes
52928 pages active
34022 pages inactive
0 pages in the laundry queue
103525 pages wired down
3862291 pages free
4096 bytes per page
226307 total name lookups
cache hits (86% pos + 6% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%
Boot time : 1587499634
procs memory page disks
faults cpu0 cpu1 cpu2 cpu3 r b w avm
fre flt re pi po fr sr ad0 pa0 in sy cs us sy
id us sy id us sy id us sy id 0 0 0 2129420 15449104 769 0
6 0 821 67 0 0 115 92235 1057 3 6 91 4 6 90 4
6 91 3 6 90
memory info:
real memory = 17179869184 (16384 MB)
avail memory = 16495013888 (15730 MB)
last pid: 44946; load averages: 0.23, 0.33, 0.24 up
0+00:09:45 20:16:59 40 processes: 1 running, 39 sleeping
Mem: 207M Active, 133M Inact, 405M Wired, 77M Buf, 15G Free
Swap: 48G Total, 48G Free
hw.physmem: 17053859840
hw.usermem: 16629661696
hw.realmem: 17179869184
total used free shared
buffers cached Mem: 16210872 625800
15585072 0 0 0 Swap:
50331644 0 50331644
swapinfo:
Device 1K-blocks Used Avail Capacity
/dev/ada0s1b 50331644 0 50331644 0%
vmstat:
procs memory page disks
faults cpu r b w avm fre flt re pi po
fr sr ad0 pa0 in sy cs us sy id 0 0 0 2129484
15448752 773 0 6 0 824 67 0 0 116 92247 1060
4 6 90
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
> >
> >
> > ================================================================
> >
> > 2020-04-20 19:45:51+0000-UTC Time: 1587411951 PC/System time
> >
> > 20 Apr 19:45:51 ntpdate[64207]: ntpdate 4.2.8p12-a (1)
> >
> > 20 Apr 19:46:06 ntpdate[65654]: step time server
> > 128.100.100.128 offset 0.003394 sec
> >
> > FreeBSD 11.3-STABLE FreeBSD 11.3-STABLE #0 r349903: Thu Jul
> > 11 16:13:47 UTC 2019
> > ro...@re...:/usr/obj/usr/src/sys/GENERIC
> >
> > (Work in progress alternative to Linux Kernel of its own
> > right, Debian, and
> > other Linux based Kernel distributions determined.)
> >
> > Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz
> > Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz
> > K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz
> > (1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @
> > 1.40GHz (1396.86-MHz K8-class CPU) Intel(R) Core(TM)
> > i3-2367M CPU @ 1.40GHz (1396.86-MHz K8-class CPU) Intel(R)
> > Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz K8-class CPU)
> >
> > dev.cpu.0.temperature: 73.0C
> > dev.cpu.1.temperature: 73.0C
> > dev.cpu.2.temperature: 69.0C
> > dev.cpu.3.temperature: 69.0C
> > hw.acpi.thermal.tz0.temperature: 75.1C
> >
> > vmstat -s:
> >
> > 83430749 cpu context switches
> > 1277504 device interrupts
> > 368458 software interrupts
> > 31639133 traps
> > 264899647 system calls
> > 27 kernel threads created
> > 1920 fork() calls
> > 596 vfork() calls
> > 0 rfork() calls
> > 0 swap pager pageins
> > 0 swap pager pages paged in
> > 0 swap pager pageouts
> > 0 swap pager pages paged out
> > 6321 vnode pager pageins
> > 73954 vnode pager pages paged in
> > 107 vnode pager pageouts
> > 107 vnode pager pages paged out
> > 0 page daemon wakeups
> > 12090933 pages examined by the page daemon
> > 0 clean page reclamation shortfalls
> > 0 pages reactivated by the page daemon
> > 113093 copy-on-write faults
> > 463 copy-on-write optimized faults
> > 28402363 zero fill pages zeroed
> > 0 zero fill pages prezeroed
> > 48 intransit blocking page faults
> > 32157102 total VM faults taken
> > 6075 page faults requiring I/O
> > 0 pages affected by kernel thread creation
> > 93134 pages affected by fork()
> > 20968 pages affected by vfork()
> > 0 pages affected by rfork()
> > 29860181 pages freed
> > 0 pages freed by daemon
> > 14599509 pages freed by exiting processes
> > 344499 pages active
> > 1010164 pages inactive
> > 76679 pages in the laundry queue
> > 262762 pages wired down
> > 2358662 pages free
> > 4096 bytes per page
> > 4907338 total name lookups
> > cache hits (96% pos + 1% neg) system 0%
> > per-directory deletions 0%, falsehits 0%, toolong 0%
> >
> > Boot time : 1587398332
> >
> > procs memory page disks
> > faults cpu0 cpu1 cpu2 cpu3 r b w avm
> > fre flt re pi po fr sr ad0 pa0 in sy cs us
> > sy id us sy id us sy id us sy id 0 0 0 30655696 9434572
> > 2359 0 0 0 2190 887 0 0 94 19431 6120 13 4 83
> > 13 4 83 13 4 83 13 4 83
> >
> > memory info:
> >
> > real memory = 17179869184 (16384 MB)
> > avail memory = 16495013888 (15730 MB)
> >
> > last pid: 71600; load averages: 0.53, 0.79, 0.81 up
> > 0+03:47:14 19:46:06 53 processes: 1 running, 52 sleeping
> >
> > Mem: 1346M Active, 3946M Inact, 300M Laundry, 1027M Wired,
> > 442M Buf, 9213M Free Swap: 48G Total, 48G Free
> >
> > hw.physmem: 17053859840
> > hw.usermem: 15977410560
> > hw.realmem: 17179869184
> >
> > total used free shared
> > buffers cached Mem: 16210872 2735676
> > 13475196 0 0 0 Swap:
> > 50331644 0 50331644
> >
> > swapinfo:
> >
> > Device 1K-blocks Used Avail Capacity
> > /dev/ada0s1b 50331644 0 50331644 0%
> >
> > vmstat:
> >
> > procs memory page disks
> > faults cpu r b w avm fre flt re pi po
> > fr sr ad0 pa0 in sy cs us sy id 0 0 0 30655696
> > 9434576 2359 0 0 0 2190 887 0 0 94 19430 6120
> > 13 4 83
> >
> >
> > 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
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > gnuplot-info mailing list
> > > gnu...@li...
> > > Membership management via:
> > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> > -----BEGIN PGP SIGNATURE-----
> >
> > iF0EARECAB0WIQQxRId2q5JPHFiozTr5X9dS0HpoEAUCXp3/QwAKCRD5X9dS0Hpo
> > EAx0AJ464SqTe0oieSwe8My/Yc6XCKHS7ACg2wPr2cEnr89Hg1SLbwB+LfpUVUE=
> > =czcZ
> > -----END PGP SIGNATURE-----
> >
> >
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > Membership management via:
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQQxRId2q5JPHFiozTr5X9dS0HpoEAUCXp9YgAAKCRD5X9dS0Hpo
EIAXAJ9lX26pI9z+B+dAWYLNTDVfNl3XJwCePEYcozQnzh3X9na5UWxnLsRjfc4=
=OaJE
-----END PGP SIGNATURE-----
|
|
From: t.sefzick <t.s...@gm...> - 2020-04-20 20:18:00
|
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 > > > ================================================================ > > 2020-04-20 19:45:51+0000-UTC Time: 1587411951 PC/System time > > 20 Apr 19:45:51 ntpdate[64207]: ntpdate 4.2.8p12-a (1) > > 20 Apr 19:46:06 ntpdate[65654]: step time server > 128.100.100.128 offset 0.003394 sec > > FreeBSD 11.3-STABLE FreeBSD 11.3-STABLE #0 r349903: Thu Jul 11 > 16:13:47 UTC 2019 > ro...@re...:/usr/obj/usr/src/sys/GENERIC > > (Work in progress alternative to Linux Kernel of its own right, > Debian, and > other Linux based Kernel distributions determined.) > > Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz > Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz K8-class > CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz > K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz > (1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @ > 1.40GHz (1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M > CPU @ 1.40GHz (1396.86-MHz K8-class CPU) > > dev.cpu.0.temperature: 73.0C > dev.cpu.1.temperature: 73.0C > dev.cpu.2.temperature: 69.0C > dev.cpu.3.temperature: 69.0C > hw.acpi.thermal.tz0.temperature: 75.1C > > vmstat -s: > > 83430749 cpu context switches > 1277504 device interrupts > 368458 software interrupts > 31639133 traps > 264899647 system calls > 27 kernel threads created > 1920 fork() calls > 596 vfork() calls > 0 rfork() calls > 0 swap pager pageins > 0 swap pager pages paged in > 0 swap pager pageouts > 0 swap pager pages paged out > 6321 vnode pager pageins > 73954 vnode pager pages paged in > 107 vnode pager pageouts > 107 vnode pager pages paged out > 0 page daemon wakeups > 12090933 pages examined by the page daemon > 0 clean page reclamation shortfalls > 0 pages reactivated by the page daemon > 113093 copy-on-write faults > 463 copy-on-write optimized faults > 28402363 zero fill pages zeroed > 0 zero fill pages prezeroed > 48 intransit blocking page faults > 32157102 total VM faults taken > 6075 page faults requiring I/O > 0 pages affected by kernel thread creation > 93134 pages affected by fork() > 20968 pages affected by vfork() > 0 pages affected by rfork() > 29860181 pages freed > 0 pages freed by daemon > 14599509 pages freed by exiting processes > 344499 pages active > 1010164 pages inactive > 76679 pages in the laundry queue > 262762 pages wired down > 2358662 pages free > 4096 bytes per page > 4907338 total name lookups > cache hits (96% pos + 1% neg) system 0% per-directory > deletions 0%, falsehits 0%, toolong 0% > > Boot time : 1587398332 > > procs memory page disks > faults cpu0 cpu1 cpu2 cpu3 r b w avm > fre flt re pi po fr sr ad0 pa0 in sy cs us sy > id us sy id us sy id us sy id 0 0 0 30655696 9434572 2359 0 > 0 0 2190 887 0 0 94 19431 6120 13 4 83 13 4 83 13 > 4 83 13 4 83 > > memory info: > > real memory = 17179869184 (16384 MB) > avail memory = 16495013888 (15730 MB) > > last pid: 71600; load averages: 0.53, 0.79, 0.81 up > 0+03:47:14 19:46:06 53 processes: 1 running, 52 sleeping > > Mem: 1346M Active, 3946M Inact, 300M Laundry, 1027M Wired, 442M > Buf, 9213M Free Swap: 48G Total, 48G Free > > hw.physmem: 17053859840 > hw.usermem: 15977410560 > hw.realmem: 17179869184 > > total used free shared > buffers cached Mem: 16210872 2735676 > 13475196 0 0 0 Swap: > 50331644 0 50331644 > > swapinfo: > > Device 1K-blocks Used Avail Capacity > /dev/ada0s1b 50331644 0 50331644 0% > > vmstat: > > procs memory page disks > faults cpu r b w avm fre flt re pi po > fr sr ad0 pa0 in sy cs us sy id 0 0 0 30655696 > 9434576 2359 0 0 0 2190 887 0 0 94 19430 6120 > 13 4 83 > > > 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 > > > > > > > > > > > > > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > Membership management via: > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -----BEGIN PGP SIGNATURE----- > > iF0EARECAB0WIQQxRId2q5JPHFiozTr5X9dS0HpoEAUCXp3/QwAKCRD5X9dS0Hpo > EAx0AJ464SqTe0oieSwe8My/Yc6XCKHS7ACg2wPr2cEnr89Hg1SLbwB+LfpUVUE= > =czcZ > -----END PGP SIGNATURE----- > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: John L. M. <jl...@gm...> - 2020-04-20 20:00:34
|
-----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
================================================================
2020-04-20 19:45:51+0000-UTC Time: 1587411951 PC/System time
20 Apr 19:45:51 ntpdate[64207]: ntpdate 4.2.8p12-a (1)
20 Apr 19:46:06 ntpdate[65654]: step time server
128.100.100.128 offset 0.003394 sec
FreeBSD 11.3-STABLE FreeBSD 11.3-STABLE #0 r349903: Thu Jul 11
16:13:47 UTC 2019
ro...@re...:/usr/obj/usr/src/sys/GENERIC
(Work in progress alternative to Linux Kernel of its own right,
Debian, and
other Linux based Kernel distributions determined.)
Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz
Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz K8-class
CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz (1396.86-MHz
K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz
(1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M CPU @
1.40GHz (1396.86-MHz K8-class CPU) Intel(R) Core(TM) i3-2367M
CPU @ 1.40GHz (1396.86-MHz K8-class CPU)
dev.cpu.0.temperature: 73.0C
dev.cpu.1.temperature: 73.0C
dev.cpu.2.temperature: 69.0C
dev.cpu.3.temperature: 69.0C
hw.acpi.thermal.tz0.temperature: 75.1C
vmstat -s:
83430749 cpu context switches
1277504 device interrupts
368458 software interrupts
31639133 traps
264899647 system calls
27 kernel threads created
1920 fork() calls
596 vfork() calls
0 rfork() calls
0 swap pager pageins
0 swap pager pages paged in
0 swap pager pageouts
0 swap pager pages paged out
6321 vnode pager pageins
73954 vnode pager pages paged in
107 vnode pager pageouts
107 vnode pager pages paged out
0 page daemon wakeups
12090933 pages examined by the page daemon
0 clean page reclamation shortfalls
0 pages reactivated by the page daemon
113093 copy-on-write faults
463 copy-on-write optimized faults
28402363 zero fill pages zeroed
0 zero fill pages prezeroed
48 intransit blocking page faults
32157102 total VM faults taken
6075 page faults requiring I/O
0 pages affected by kernel thread creation
93134 pages affected by fork()
20968 pages affected by vfork()
0 pages affected by rfork()
29860181 pages freed
0 pages freed by daemon
14599509 pages freed by exiting processes
344499 pages active
1010164 pages inactive
76679 pages in the laundry queue
262762 pages wired down
2358662 pages free
4096 bytes per page
4907338 total name lookups
cache hits (96% pos + 1% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%
Boot time : 1587398332
procs memory page disks
faults cpu0 cpu1 cpu2 cpu3 r b w avm
fre flt re pi po fr sr ad0 pa0 in sy cs us sy
id us sy id us sy id us sy id 0 0 0 30655696 9434572 2359 0
0 0 2190 887 0 0 94 19431 6120 13 4 83 13 4 83 13
4 83 13 4 83
memory info:
real memory = 17179869184 (16384 MB)
avail memory = 16495013888 (15730 MB)
last pid: 71600; load averages: 0.53, 0.79, 0.81 up
0+03:47:14 19:46:06 53 processes: 1 running, 52 sleeping
Mem: 1346M Active, 3946M Inact, 300M Laundry, 1027M Wired, 442M
Buf, 9213M Free Swap: 48G Total, 48G Free
hw.physmem: 17053859840
hw.usermem: 15977410560
hw.realmem: 17179869184
total used free shared
buffers cached Mem: 16210872 2735676
13475196 0 0 0 Swap:
50331644 0 50331644
swapinfo:
Device 1K-blocks Used Avail Capacity
/dev/ada0s1b 50331644 0 50331644 0%
vmstat:
procs memory page disks
faults cpu r b w avm fre flt re pi po
fr sr ad0 pa0 in sy cs us sy id 0 0 0 30655696
9434576 2359 0 0 0 2190 887 0 0 94 19430 6120
13 4 83
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
>
>
>
>
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
-----BEGIN PGP SIGNATURE-----
iF0EARECAB0WIQQxRId2q5JPHFiozTr5X9dS0HpoEAUCXp3/QwAKCRD5X9dS0Hpo
EAx0AJ464SqTe0oieSwe8My/Yc6XCKHS7ACg2wPr2cEnr89Hg1SLbwB+LfpUVUE=
=czcZ
-----END PGP SIGNATURE-----
|
|
From: Ethan M. <eam...@gm...> - 2020-04-20 19:00:54
|
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: <co...@tr...> - 2020-04-20 18:43:27
|
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
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!
Another trial:
plot 'my_file.txt' using 3:($1+$2) title "col 3" axis x1y1 with
linespoints pt7 lc 4
That didn't work either: this time the time was used for the plot as
"y", but the date was set to 1.1. and the true date from column 1 was
ignored.
What am I doing wrong? Unfortunately, you won't find an example of a
timestamp consisting of two columns as a "y" value anywhere. Admittedly,
this is rarely of use.
Thanks!
Best,
Thomas
|
|
From: Ethan M. <eam...@gm...> - 2020-04-20 16:39:10
|
On Monday, 20 April 2020 02:05:19 PDT Georg-Johann Lay wrote: > Hi, I am new in Gnuplot and am still struggling with it... > > Usually I am running it as a script from the command line like > > > gnuplot -persist x.gplot > > However, the persist option is not working properly, for example with > the following x.gplot: > > plot [0:1] atan(x) > plot [0:1] cos(x) > quit > > What I want: > > Show plot #1 until I close that window, then > Show plot #2 until I close that window, then > Quit after the last window is closed. plot [0:1] atan(x) pause mouse close plot [0:1] cos(x) pause mouse close The "persist" option is not what you want here, although it doesn't hurt. Ethan > However, what happens is: > > 1) The 1st plot is shown but immediately closed after a fraction of a > second. > > 2) The 2nd plot is shown persistently as desired. > > 3) After closing that window, Gnuplot does NOT quit, i.e. ignores the > final "quit" command. > > I am sure this question must have been asked 100 times before, but > neither the manual nor the FAQ are addressing this. > > Gnuplot version is v4.4.4 > > Thanks, > > Johann > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Georg-Johann L. <av...@gj...> - 2020-04-20 09:16:43
|
Hi, I am new in Gnuplot and am still struggling with it... Usually I am running it as a script from the command line like > gnuplot -persist x.gplot However, the persist option is not working properly, for example with the following x.gplot: plot [0:1] atan(x) plot [0:1] cos(x) quit What I want: Show plot #1 until I close that window, then Show plot #2 until I close that window, then Quit after the last window is closed. However, what happens is: 1) The 1st plot is shown but immediately closed after a fraction of a second. 2) The 2nd plot is shown persistently as desired. 3) After closing that window, Gnuplot does NOT quit, i.e. ignores the final "quit" command. I am sure this question must have been asked 100 times before, but neither the manual nor the FAQ are addressing this. Gnuplot version is v4.4.4 Thanks, Johann |
|
From: daniloassis <dan...@ut...> - 2020-04-08 16:12:05
|
Hi I would like to know if it is possible to create 3D graphics but using boxes as in the example gallery of version 5.5. Is there a patch for version 5.2? I needed these graphics urgently Something like this:http://www.gnuplot.info/demo_5.3/3dboxes.html -- Danilo Renato de Assis Departamento de Infra-Estrutura e Serviços - Bloco H Técnico em Tecnologia da Informação. UTFPR - Reitoria (41) 3310-4826 |
|
From: Sergei N. <vo...@ra...> - 2020-04-04 10:10:31
|
В письме от пятница, 3 апреля 2020 г. 22:35:31 MSK пользователь Hans-Bernhard Bröker написал: > That would not improve anything because that's exactly what the existing > code already does behind the scenes (except that it works in seconds,not > hours). The actual syntax for that is either (old-style) True. And according to https://sourceforge.net/p/gnuplot/bugs/2245/ this particular bug for a timecolumn is fixed already. However, when I was writing about a formatted reading I meant something of a more general nature when ANY column could be read through a format, not necessarily a time column. This of course raises a somewhat philosophical question on whether this should be done in Gnuplot and not through a standard awk/sed/whatever machinery... Thanks, Sergei |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2020-04-03 19:35:46
|
Am 02.04.2020 um 20:31 schrieb Sergei Naumov via gnuplot-info: > Well, this whole mess comes from the fact that gnuplot, it seems, can not read > A COLUMN in an arbitrary formatted way. No, that's not what this comes from. > But it would be cool to make a formatted reading available: > > set xdata format "%tH:%tM:%tS" > set ydata format "%tH:%tM:%tS" > plot 'datafile' using ($1.1+$1.2/60+$1.3/3600):($2.1+$2.2/60+$2.3/3600) That would not improve anything because that's exactly what the existing code already does behind the scenes (except that it works in seconds,not hours). The actual syntax for that is either (old-style) set xdata time set ydata time set timefmt'%tH:%tM:%tS' plot 'datafile' using 1:2 or (new-style) plot 'datafile' using (timecolumn(1,"%tH:%tM:%tS")):(timecolumn(2,"%tH:%tM:%tS")) So spelling it out in user-land instead of letting the internal machinery handle it will not yield any different result. |
|
From: theozh <th...@gm...> - 2020-04-03 16:25:46
|
a suggestion for a possible workaround (still to be optimized for all possible cases):
### handling negative times
$Data <<EOD
1 00:01:00
2 -00:01:00
EOD
myTimeFmt = "%tH:%tM:%tS"
myTimeSigned(fmt,s) = s[1:1] eq '-' && strptime("%tH",s)==0 && strptime(fmt,s)>0 ? \
-strptime(fmt,s[2:]) : strptime(fmt,s)
myTime(n,fmt) = myTimeSigned(fmt,strcol(n))
set table $Test
plot $Data u 1:(myTime(2,myTimeFmt)) w table
unset table
print $Test
### end of code
Result:
1 60
2 -60
see more details: https://stackoverflow.com/a/61005915/7295599
Theo.
|
|
From: Sergei N. <vo...@ra...> - 2020-04-02 18:31:45
|
В письме от четверг, 2 апреля 2020 г. 19:34:50 MSK пользователь Hans-Bernhard Bröker написал: > So the sign of the hours field extends over to the minutes and seconds. > > I'll assume (although the documentation doesn't say so) that this was > meant to work like that. > > > gnuplot> print strptime(myTimeFmt,"-01:-02:03.4") > > -3723.4 > > gnuplot> print strptime(myTimeFmt,"-01:+02:03.4") > > -3723.4 > > Hmm, so there's no way to flip the minutes back to positive once the > hours are negative. That IMHO casts doubt on the whole idea of > inheriting the sign from one field to the other (not to mention what > might happen if some devious mind decided to use these fields in reverse > order, i.e. "%tS:%tM:%tH"). Well, this whole mess comes from the fact that gnuplot, it seems, can not read A COLUMN in an arbitrary formatted way. There is a substitute for time, i.e. 'timefmt' where this thing with a sign is probably a bug and has to be fixed in such a way that it is taken into account when it sits only before the %tH. Otherwise, it has no meaning. But it would be cool to make a formatted reading available: set xdata format "%tH:%tM:%tS" set ydata format "%tH:%tM:%tS" plot 'datafile' using ($1.1+$1.2/60+$1.3/3600):($2.1+$2.2/60+$2.3/3600) where dotted notation indicates a positional value according to a format string. Thanks, Sergei |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2020-04-02 16:35:06
|
Am 02.04.2020 um 17:33 schrieb Sergei Naumov via gnuplot-info: > gnuplot> myTimeFmt = "%tH:%tM:%tS" > gnuplot> print strptime(myTimeFmt,"-00:24:25.3") > 1465.3 > gnuplot> print strptime(myTimeFmt,"00:-24:25.3") > -1465.3 > gnuplot> > > Is there a bug or it should work like this? A little bit of both, I'd say: %tH does work, but not for a value of minus _zero_ hours. From a user point-of-view that's a bug, but I see how it might be tricky to get the implementation to do what this wants to achieve, given that plus zero and minus zero are somewhat hard to distinguish. > gnuplot> print strptime(myTimeFmt,"01:02:03.4") > 3723.4 > gnuplot> print strptime(myTimeFmt,"-01:02:03.4") > -3723.4 So the sign of the hours field extends over to the minutes and seconds. I'll assume (although the documentation doesn't say so) that this was meant to work like that. > gnuplot> print strptime(myTimeFmt,"-01:-02:03.4") > -3723.4 > gnuplot> print strptime(myTimeFmt,"-01:+02:03.4") > -3723.4 Hmm, so there's no way to flip the minutes back to positive once the hours are negative. That IMHO casts doubt on the whole idea of inheriting the sign from one field to the other (not to mention what might happen if some devious mind decided to use these fields in reverse order, i.e. "%tS:%tM:%tH"). > gnuplot> print strptime(myTimeFmt,"01:-02:03.4") > 3483.4 But if you start with positive hours, the minutes alone can be negative, while the seconds still default to positive. The seconds can be negative all by themselves, though: > gnuplot> print strptime(myTimeFmt,"01:02:-03.4") > 3716.6 |
|
From: Sergei N. <vo...@ra...> - 2020-04-02 16:02:44
|
Hi! posting a question on https://stackoverflow.com/questions/60985800/reading-formatted-column-in-gnuplot it came out that strptime() does not recognize negative sign in cases like the following: gnuplot> myTimeFmt = "%tH:%tM:%tS" gnuplot> print strptime(myTimeFmt,"-00:24:25.3") 1465.3 gnuplot> print strptime(myTimeFmt,"00:-24:25.3") -1465.3 gnuplot> Is there a bug or it should work like this? If it does, how one would take this minus into account? Thanks, Sergei |
|
From: Reginald B. <pul...@ya...> - 2020-03-31 15:33:53
|
I'm trying to do a fit and plot the line with a time axis. I can do the fit with an ordinal axis (i.e. 0:2), but can't figure out how to make a fit with time or display the ordinal fit in time. plt2.pdf shows what I'm trying to fit so I can show the date the line meets 0%. plt2a.pdf shows the result for: g(x) = a + b*x fit g(x) 'b' u 0:2 via a,b set term post lw 3 set out 'plt2a.ps' plot 'b' u 0:2,g(x) I just want to do the same thing but with the time axis as shown in plt2.pdf. I've read the help and demos, but just don't quite get it. I'm running 5.0 patch level 6 on OpenIndiana. If this is better done with a more recent version I'll build that from source and install it. Thanks, Reg |
|
From: Dario S. <san...@gm...> - 2020-02-28 19:56:48
|
Hello, list. I have a large .csv file and I need to plot only 500 of its elements which are towards the end. I would still like to have the x-axis to count the elements starting from 0. I have the following script which generates this error: "all points y value undefined!". It must be a problem with the operation that I perform on $0 because I can plot if I remove the subtraction. Would you please help me understand what I'm doing wrong and, generally, what is the best practice to start counting the elements from zero even when the elements do not start from the zero-position? Thanks, Dario low = 7005000 len = 500 set datafile separator "," set key autotitle columnhead set term postscript eps color font "Times-Roman,12" set output 'zc.eps' set key opaque set y2range[0:1] set xlabel "Samples" set ylabel "Amplitude" set grid lt 0 lc rgb "black" lw 2 set border lw .1 plot[low:(low+len)] ARG1 using ($0-low):2 with points ls 1 lc rgb "blue" lw 1 title "Looped drum sample", "" using ($0-low):3 with impulses lt rgb "red" lw 1 axis x1y2 title "Trigger function" reset |
|
From: Dario S. <san...@gm...> - 2020-02-26 23:06:49
|
Thanks, Ethan. Now that you're mentioning that, I remember performing a brew upgrade just a few days ago. I'll try tikz. Thanks for your help. Dario On Thu, 27 Feb 2020 at 00:02, Ethan Merritt <eam...@gm...> wrote: > That output looks similar to previous reports that traced back to a bad > version of the pango/cairo libraries on the affected machines. In other > words, to fix it you need to replace those libraries. No need to change > anything in gnuplot per se. Previous reporters said that "downgrading" the > libraries fixed it for them but I do not remember the specific versions > involved. Or if you are working in a LaTeX friendly environment, I suggest > using the tikz terminal to generate pdf output for use with pdflatex. > > On Wed, Feb 26, 2020 at 2:30 PM Dario Sanfilippo < > san...@gm...> wrote: > >> Hello, dear list. >> >> I am plotting a two-column, 1000-element-each CSV file using the script >> attached. >> >> I am using pngcairo with enhanced font times 40 and a resolution of >> 4096x2160. >> >> The resulting .png has the correct plots but the numbers of the values of >> the tics are overlapped. See this image: >> https://www.dropbox.com/s/w1a9ch0emh3l1zl/singleplot.png?dl=0. >> >> If using the eps terminal, there is no problem with the tics, although I >> don't seem to be able to use 'times', and I happened to have a hard time >> loading eps files in the latex template of my uni so I'd prefer to stick >> to >> .png files. >> >> I have generated several .png files in the past using the same pngcairo >> terminal as in the script and it was fine. >> >> If I had accidentally set something wrong, shouldn't the 'reset' at the >> end >> get rid of that? >> >> Thank you so much for your help. >> >> Dario >> >> _______________________________________________ >> gnuplot-info mailing list >> gnu...@li... >> Membership management via: >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > > > -- > Ethan A Merritt > Biomolecular Structure Center, K-428 Health Sciences Bldg > MS 357742, University of Washington, Seattle 98195-7742 > |
|
From: Ethan M. <eam...@gm...> - 2020-02-26 23:02:14
|
That output looks similar to previous reports that traced back to a bad version of the pango/cairo libraries on the affected machines. In other words, to fix it you need to replace those libraries. No need to change anything in gnuplot per se. Previous reporters said that "downgrading" the libraries fixed it for them but I do not remember the specific versions involved. Or if you are working in a LaTeX friendly environment, I suggest using the tikz terminal to generate pdf output for use with pdflatex. On Wed, Feb 26, 2020 at 2:30 PM Dario Sanfilippo <san...@gm...> wrote: > Hello, dear list. > > I am plotting a two-column, 1000-element-each CSV file using the script > attached. > > I am using pngcairo with enhanced font times 40 and a resolution of > 4096x2160. > > The resulting .png has the correct plots but the numbers of the values of > the tics are overlapped. See this image: > https://www.dropbox.com/s/w1a9ch0emh3l1zl/singleplot.png?dl=0. > > If using the eps terminal, there is no problem with the tics, although I > don't seem to be able to use 'times', and I happened to have a hard time > loading eps files in the latex template of my uni so I'd prefer to stick to > .png files. > > I have generated several .png files in the past using the same pngcairo > terminal as in the script and it was fine. > > If I had accidentally set something wrong, shouldn't the 'reset' at the end > get rid of that? > > Thank you so much for your help. > > Dario > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- Ethan A Merritt Biomolecular Structure Center, K-428 Health Sciences Bldg MS 357742, University of Washington, Seattle 98195-7742 |
|
From: Dario S. <san...@gm...> - 2020-02-26 22:29:32
|
Hello, dear list. I am plotting a two-column, 1000-element-each CSV file using the script attached. I am using pngcairo with enhanced font times 40 and a resolution of 4096x2160. The resulting .png has the correct plots but the numbers of the values of the tics are overlapped. See this image: https://www.dropbox.com/s/w1a9ch0emh3l1zl/singleplot.png?dl=0. If using the eps terminal, there is no problem with the tics, although I don't seem to be able to use 'times', and I happened to have a hard time loading eps files in the latex template of my uni so I'd prefer to stick to .png files. I have generated several .png files in the past using the same pngcairo terminal as in the script and it was fine. If I had accidentally set something wrong, shouldn't the 'reset' at the end get rid of that? Thank you so much for your help. Dario |
|
From: Debostuti G. <deb...@gm...> - 2020-02-19 08:26:42
|
Eathen
Thanks a lot...that worked perfectly!!!
Debostuti
On Tue, Feb 18, 2020 at 11:34 PM Ethan Merritt <eam...@gm...> wrote:
> On Monday, 17 February 2020 21:43:16 PST Debostuti Ghoshdastidar wrote:
> > Hi
> >
> > I have a data set (input.dat) which looks as below:
> >
> > #C1 C2 C3 ... C250
> > 1 -2.1 -1.9... -1.1
> > 2
> > .
> > .
> > .
> > 10 -0.9 1.3 1.7
> >
> > My intention was that points 1 to 10 will be joined in each column to
> form
> > each plot, and therefore I'll have a 249-line plot. This I am able to
> > achieve by the following:
> >
> > N = system("awk 'NR==1{print NF}' input.dat")
> > plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2
> >
> > Using this I obtain a plot where each line is plotted with a different
> > color. I want the plots to be colored by a defined palette where the
> range
> > is the column number itself, i.e., C2 will be the lightest blue and C250
> > the darkest blue, since the columns are arranged based on a factor.
>
> set palette defined (0 "white", 1 "dark-blue")
> set cbrange [2:N]
> plot for [i=2:N] "input.dat" using 1:i with lines lc palette i
>
> [oops] that should be
>
> plot for [i=2:N] "input.dat" using 1:i with lines lc palette cb i
>
> The keyword "cb" means to map the palette through the colorbox range.
>
> Ethan
>
>
>
--
Debostuti Ghosh Dastidar
DST SERB National Post-Doctoral Fellow
Molecular Biophysics Unit
Indian Institute of Science, Bangalore
|
|
From: Ethan M. <eam...@gm...> - 2020-02-18 18:04:22
|
On Monday, 17 February 2020 21:43:16 PST Debostuti Ghoshdastidar wrote:
> Hi
>
> I have a data set (input.dat) which looks as below:
>
> #C1 C2 C3 ... C250
> 1 -2.1 -1.9... -1.1
> 2
> .
> .
> .
> 10 -0.9 1.3 1.7
>
> My intention was that points 1 to 10 will be joined in each column to form
> each plot, and therefore I'll have a 249-line plot. This I am able to
> achieve by the following:
>
> N = system("awk 'NR==1{print NF}' input.dat")
> plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2
>
> Using this I obtain a plot where each line is plotted with a different
> color. I want the plots to be colored by a defined palette where the range
> is the column number itself, i.e., C2 will be the lightest blue and C250
> the darkest blue, since the columns are arranged based on a factor.
set palette defined (0 "white", 1 "dark-blue")
set cbrange [2:N]
plot for [i=2:N] "input.dat" using 1:i with lines lc palette i
[oops] that should be
plot for [i=2:N] "input.dat" using 1:i with lines lc palette cb i
The keyword "cb" means to map the palette through the colorbox range.
Ethan
|
|
From: Ethan M. <eam...@gm...> - 2020-02-18 17:23:12
|
On Monday, 17 February 2020 21:43:16 PST Debostuti Ghoshdastidar wrote:
> Hi
>
> I have a data set (input.dat) which looks as below:
>
> #C1 C2 C3 ... C250
> 1 -2.1 -1.9... -1.1
> 2
> .
> .
> .
> 10 -0.9 1.3 1.7
>
> My intention was that points 1 to 10 will be joined in each column to form
> each plot, and therefore I'll have a 249-line plot. This I am able to
> achieve by the following:
>
> N = system("awk 'NR==1{print NF}' input.dat")
> plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2
>
> Using this I obtain a plot where each line is plotted with a different
> color. I want the plots to be colored by a defined palette where the range
> is the column number itself, i.e., C2 will be the lightest blue and C250
> the darkest blue, since the columns are arranged based on a factor.
set palette defined (0 "white", 1 "dark-blue")
set cbrange [2:N]
plot for [i=2:N] "input.dat" using 1:i with lines lc palette i
|
|
From: t.sefzick <t.s...@gm...> - 2020-02-18 12:05:12
|
Hi,
you could specify the linecolor as ARGBvalue by adding the "linecolor"
option to your plot command:
plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2 \
linecolor rgb ((255-i) << 16) + ((255-i) << 8) + 255
starting from (nearly) white and ending with dark blue.
Works, if N is around 250 but below 255, otherwise you have
to add a scaling factor to the color computation.
Thomas
On Tue, Feb 18, 2020 at 11:13:16AM +0530, Debostuti Ghoshdastidar wrote:
> Hi
>
> I have a data set (input.dat) which looks as below:
>
> #C1 C2 C3 ... C250
> 1 -2.1 -1.9... -1.1
> 2
> .
> .
> .
> 10 -0.9 1.3 1.7
>
> My intention was that points 1 to 10 will be joined in each column to form
> each plot, and therefore I'll have a 249-line plot. This I am able to
> achieve by the following:
>
> N = system("awk 'NR==1{print NF}' input.dat")
> plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2
>
> Using this I obtain a plot where each line is plotted with a different
> color. I want the plots to be colored by a defined palette where the range
> is the column number itself, i.e., C2 will be the lightest blue and C250
> the darkest blue, since the columns are arranged based on a factor.
>
> Appreciate any help in this regard.
>
> Thank you
>
>
> --
> Debostuti Ghosh Dastidar
> DST SERB National Post-Doctoral Fellow
> Molecular Biophysics Unit
> Indian Institute of Science, Bangalore
|
|
From: Debostuti G. <deb...@gm...> - 2020-02-18 05:43:36
|
Hi
I have a data set (input.dat) which looks as below:
#C1 C2 C3 ... C250
1 -2.1 -1.9... -1.1
2
.
.
.
10 -0.9 1.3 1.7
My intention was that points 1 to 10 will be joined in each column to form
each plot, and therefore I'll have a 249-line plot. This I am able to
achieve by the following:
N = system("awk 'NR==1{print NF}' input.dat")
plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2
Using this I obtain a plot where each line is plotted with a different
color. I want the plots to be colored by a defined palette where the range
is the column number itself, i.e., C2 will be the lightest blue and C250
the darkest blue, since the columns are arranged based on a factor.
Appreciate any help in this regard.
Thank you
--
Debostuti Ghosh Dastidar
DST SERB National Post-Doctoral Fellow
Molecular Biophysics Unit
Indian Institute of Science, Bangalore
|
|
From: Debostuti G. <deb...@gm...> - 2020-02-14 05:04:05
|
Hi
I have a data set (input.dat) which looks as below:
#C1 C2 C3 ... C250
1 -2.1 -1.9... -1.1
2
.
.
.
10 -0.9 1.3 1.7
My intention was that points 1 to 10 will be joined in each column to form
each plot, and therefore I'll have a 249-line plot. This I am able to
achieve by the following:
N = system("awk 'NR==1{print NF}' input.dat")
plot for [i=2:N] "input.dat" u 1:i with lines title "" linewidth 2
However, each line in the plot has a different color. I want the plots to
be colored by a defined palette where the range is the column number
itself. E.g., C2 will be the lightest blue and C250 the darkest blue. I
require this because the columns are arranged based on a factor.
Thanks in advance for any help in this regard.
--
Debostuti Ghosh Dastidar
DST SERB National Post-Doctoral Fellow
Molecular Biophysics Unit
Indian Institute of Science, Bangalore
|