ot again: gnuplot> how to get decimal hour exported
Wolfgang Engelmann
engelmann at uni-tuebingen.de
Fri Jun 19 12:12:22 UTC 2020
Am 19.06.20 um 09:53 schrieb Wolfgang Engelmann:
> I run this:
>
> gnuplot> plot "file.txt" using 0:($1 + $2/60.)
> with data in file.txt like
>
> 1 00 01
> 2 00 04
> 3 00 07
> 4 00 11
> ...... up to 256
>
> the minutes (3rd column) are divided by 60 and added to the hour (2nd
> column). They are plotted against time (1st column) and I get a correct
> graph.
>
> How can I obtain the column of data with the hours and decimalized
> minutes, e.g. 00 30 > 00.50 ? I need them for further analyses.
>
> I could not find the command in the gnuplot (and pyxplot) manuals.
> Perhaps I missed the search word for it.
>
> I would appreciate very much help
>
> Wolfgang
found it! > tabulate !
pyxplot> tabulate 'file.txt' using ($2+$3/60.):$1
creates a file
# hdez_nummer.txt
# ColumnUnits: 1 1
0.0166666667 1
0.0666666667 2
0.1166666667 3
0.1833333333 4
...
More information about the lyx-users
mailing list