Gnuplot alternative with higher accuracy

I am currently using gnuplot to build timeline data. However, the timeline is accurate in milliseconds, but gnuplot seems to be able to handle seconds.

I looked at several alternatives, but I really need something like gnuplot that can handle fractions of a second.

The programming language used for the main script is Python, and while I was looking at matplotlib, it seems a lot more "heavy" than gnuplot. Since I will not always update the graphical side of things, I want to keep it as simple as possible.

Any suggestions?

Update

I use this with gnuplot:

set xdata time
set timefmt "%Y-%m-%d-%H:%M:%S"

However, there is no% f to get the milliseconds. For example, this works:

2011-01-01-09:00:01

but I need:

2011-01-01-09:00:01.123456
+5
4

set format x '%.6f'

(, , Matplotlib gnuplot, ):

set timefmt "%Y-%m-%d-%H:%M:%.6S"

( , %S).

.

+10

gnuplot 4.6 " /" (. 114 gnuplot 4.6 PDF):

% S - , 0-60 , ()

, , 2013-09-16 09:56:59.412, %S. :

set timefmt "%Y-%m-%d %H:%M:%S"
set datafile separator ","
plot "timed_results.data" using 1:2 title 'Results' with lines

:

2013-09-16 09:56:53.405,10.947
2013-09-16 09:56:54.392,10.827
2013-09-16 09:56:55.400,10.589
2013-09-16 09:56:56.394,9.913
2013-09-16 09:56:58.050,11.04
+9

gnuplot , :

35010.59199,100,101
35010.76560,100,110
35011.05703,100,200
35011.08119,100,110
35011.08154,100,200
35011.08158,100,200
35011.08169,100,200
35011.10814,100,200
35011.16955,100,110
35011.16985,100,200
35011.17059,100,200

- - . csv gnuplut do:

set datafile separator ','
plot "test.csv" using 1:3 with lines
+1

. , - gnuplot , , , .

awk -

plot  "<awk 'your_awk_one_liner' file1.dat" with lines

, ( ). , awk, - , - http://www.gnu.org/manual/gawk/html_node/Time-Functions.html http://www.computing.net/answers/unix/script-to-convert-datetime-to-seco/3795.html. awk gnuplot : http://t16web.lanl.gov/Kawano/gnuplot/datafile3-e.html.

( ) - - , : x?

I'm afraid I don’t have time to try to write a complete solution, but something reasonable should be possible.

Good luck - keep us informed, if something works for you - I would be interested.

+1
source

All Articles