|
From: Uwe Z. <uw...@kt...> - 2004-06-01 13:08:49
|
I might have been a bit confuse concerning the
set datafile separator ","
since it is not mentioned in the index of the Gnuplot 4.0 help file.
The example given below works fine now again without giving the format
specifier in the using directive but by switching to comma as
separator character.
It appears that my newsreader treated the data file lines badly, so I
attach a sample data file...
Uwe.
UZ> Gnuplot 3.8i and 4.0 both crash while plotting a data file using a
UZ> format specifier on a data file. The data file has 21 comma separated
UZ> columns where every third column is a text formated date (which I
UZ> ignore):
UZ> #101(Time stamp),101(Seconds),101(C),102(Time
UZ> a minimum sample which still works:
UZ> ------------------------
UZ> reset
UZ> set nologscale y
UZ> set xrange [-20:20]
UZ> set autoscale y
UZ> plot \
UZ> '030910alogg.csv' \
UZ> every 1:::0::0 \
UZ> using ($1<4700? $1/60.0-60.0:1/0):($2)
UZ> '"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf'\
UZ> axes x1y1 \
UZ> title 'center temp.' \
UZ> with lines linewidth 4 \
UZ> ;
UZ> ------------------------
UZ> but adding another column to the format specifier crashes Gnuplot on
UZ> Win32 (WinXP sp1+updates):
UZ> ------------------------
UZ> reset
UZ> set nologscale y
UZ> set xrange [-20:20]
UZ> set autoscale y
UZ> plot \
UZ> '030910alogg.csv' \
UZ> every 1:::0::0 \
UZ> using ($1<4700? $1/60.0-60.0:1/0):($2)
UZ> '"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf'\
UZ> axes x1y1 \
UZ> title 'center temp.' \
UZ> with lines linewidth 4 \
UZ> ;
UZ> ------------------------
UZ> ...independently on which pair of columns I select to read.
UZ> Earlier I was able to plot this same datafile with GnuPlot 3.7x where
UZ> the column separator could be redefined to be a comma instead of a
UZ> whitespace...
UZ> Any ideas?
UZ> Uwe.
|