|
From: Jacques B. <jac...@on...> - 2005-01-08 14:48:54
|
Suppose you want to plot a 2D data-file the 1st column of which contain
times. For example:
gnuplot time.dem
time.dem:
set timefmt '%s'
set xdata time
set format x "%y-%m-%d\n%H:%M:%S"
set xrange ["1105190580":"1105190880"] # ok
#tmin="1105190580"; tmax="1105190880"; set xrange [tmin:tmax]
plot 'time.dat' using 1:2
pause -1
time.dat:
1105190640 2
1105190700 1
1105190760 3
1105190820 0
You can set a time range with "set xrange" using explicit quoted
strings, but you can't do it with variables containing strings (ex:
tmin, tmax).
Would it be easy to implement this?
|