|
From: Bart V. <Bar...@te...> - 2013-11-05 08:12:15
|
On 10/30/2013 10:06 PM, Theo wrote:
> your data looks a bit distorted (return/newlines), maybe it's because of
> the mail program.
True.
> If I correct this and apply all your settings and
>
> plot 'Data.csv' u 1:4 every ::6
>
> with gnuplot 4.6.3 I do not have problems.
>
> Do you get error messages? What is actually plotted?
> Maybe try first simpler data to find out what's going wrong.
>
> Theo.
>
> Can you plot e.g. this?
>
> "blabla1"
> "blabla2"
> "blabla3"
> "blabla4"
> "blabla5"
> "blabla6"
> 30-10 11:19:40,1.0,2.0,3.0
> 30-10 11:19:41,1.1,2.1,3.1
> 30-10 11:19:42,1.2,2.2,3.2
> 30-10 11:19:43,1.3,2.3,3.3
> 30-10 11:19:44,1.4,2.4,3.4
First of all, my version of gnuplot is gnuplot 4.6 patchlevel 3.
Secondly, If I plot the following data
"blabla1"
"blabla2"
"blabla3"
"blabla4"
"blabla5"
"blabla6"
"blabla7"
30-10 11:19:40,1.0,2.0,3.0
30-10 11:19:41,1.1,2.1,3.1
30-10 11:19:42,1.2,2.2,3.2
30-10 11:19:43,1.3,2.3,3.3
30-10 11:19:44,1.4,2.4,3.4
using the script
------ cut here -----------------------------------------------
set loadpath '../data'
set datafile separator ","
set xlabel "Time"
set xdata time
set timefmt "%d-%m %H:%M:%S"
set format x "%H:%M"
plot "dstat_test.csv" u 1:2 every ::6 t columnheader(2) w lp, \
"" using 1:3 every ::6 t columnheader(3) w lp, \
"" using 1:4 every ::6 t columnheader(4) w lp
------ cut here -----------------------------------------------
then I correctly get three straight lines. If I however remove the line
"blabla5" so that the data-file looks more like a dstat data output file:
"blabla1"
"blabla2"
"blabla3"
"blabla4"
"blabla6"
"blabla7"
30-10 11:19:40,1.0,2.0,3.0
30-10 11:19:41,1.1,2.1,3.1
30-10 11:19:42,1.2,2.2,3.2
30-10 11:19:43,1.3,2.3,3.3
30-10 11:19:44,1.4,2.4,3.4
and i use the same script for plotting, then the plot is wrong and I
only see three dots plottet vertically above each other (at y-values
1.5, 2.5 and 3.5).
So the empty line is causing me trouble here... but I don't know why :-(
Any help appreciated.
Kind regards,
Bart
|