|
From: Natu <inc...@rj...> - 2014-03-10 00:35:51
|
I have a bunch of datafiles that I am plotting as follows:
set datafile separator ","
set xdata time
set xlabel "time/date"
set grid
set timefmt "%m/%d/%y,%H:%M:%S"
set format x "%H:%M\n%m/%d"
set ylabel "counts"
set yrange ["42":"91"]
set multiplot
plot "GKLOG001_25452.AVG" using 1:7 with linespoints title "\n5
minute min/avg/max" lt rgb "blue";
plot "GKLOG001_25452.MIN" using 1:7 with linespoints title "" lt rgb
"green";
plot "GKLOG001_25452.MAX" using 1:7 with linespoints title "" lt rgb
"red";
When I plot certain data files, gnuplot draws a line across the graph
showing the increasing/decreasing trend of the data. With other data
the line does not get drawn. I am calling this a trendline because I
don't know what else it would be called (Maybe a fit line?). I have not
given any commands asking it to do this.
Does anyone know what this is and how it might be turned off?
Thank You,
Natu
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2014-03-10 12:05:42
|
On 10.03.2014 01:03, Natu wrote:
> set multiplot
> plot "GKLOG001_25452.AVG" using 1:7 with linespoints title "\n5
> minute min/avg/max" lt rgb "blue";
> plot "GKLOG001_25452.MIN" using 1:7 with linespoints title "" lt rgb
> "green";
> plot "GKLOG001_25452.MAX" using 1:7 with linespoints title "" lt rgb
> "red";
This use of 'multiplot' is ill-advised. It will not have any positive
effect compared to a more straight-forward
plot "GKLOG001_25452.AVG" u 1:7 w lp t "avg" lt rgb "blue", \
"GKLOG001_25452.MIN" u 1:7 w lp t"min" lt rgb "green", \
"GKLOG001_25452.MAX" u 1:7 wlp t "max" lt rgb "red"
> When I plot certain data files, gnuplot draws a line across the graph
> showing the increasing/decreasing trend of the data.
I'm reasonably sure this has nothing to do with any trend. But it's
hard to know what else it might be, because you don't show any data that
triggered it.
|
|
From: Natu <inc...@rj...> - 2014-03-10 15:54:09
|
On 03/10/2014 05:05 AM, Hans-Bernhard Bröker wrote:
> On 10.03.2014 01:03, Natu wrote:
>
>> set multiplot
>> plot "GKLOG001_25452.AVG" using 1:7 with linespoints title "\n5
>> minute min/avg/max" lt rgb "blue";
>> plot "GKLOG001_25452.MIN" using 1:7 with linespoints title "" lt
>> rgb
>> "green";
>> plot "GKLOG001_25452.MAX" using 1:7 with linespoints title "" lt
>> rgb
>> "red";
>
> This use of 'multiplot' is ill-advised. It will not have any positive
> effect compared to a more straight-forward
>
> plot "GKLOG001_25452.AVG" u 1:7 w lp t "avg" lt rgb "blue", \
> "GKLOG001_25452.MIN" u 1:7 w lp t"min" lt rgb "green", \
> "GKLOG001_25452.MAX" u 1:7 wlp t "max" lt rgb "red"
>
>> When I plot certain data files, gnuplot draws a line across the graph
>> showing the increasing/decreasing trend of the data.
>
> I'm reasonably sure this has nothing to do with any trend. But it's
> hard to know what else it might be, because you don't show any data
> that triggered it.
>
Thank you for all the replies. Most seemed to think that it was related
to the multiplot. I have created a very simple example with no
multiplot. Here are the commands and data that produced this. I am
running gnuplot 4.4 patchlevel 3 under ubuntu 12.04. Same problem under
gnuplot 4.2. I was a little unsure about parsing the date/time from two
columns, but I got that from several web page examples. It seems to
work correctly.
set datafile separator ","
set xdata time
set timefmt "%m/%d/%y,%H:%M:%S"
set format x "%H:%M\n%m/%d"
plot "test4.dat" using 1:3 with linespoints;
Here's the data in test4.dat
03/09/14,23:59:31,61.9
03/09/14,00:09:31,66.5
03/09/14,00:19:31,65.1
03/09/14,00:29:31,66.4
03/09/14,00:39:31,67.6
03/09/14,00:49:31,63.1
03/09/14,00:59:31,62.4
03/09/14,01:09:31,61.3
03/09/14,01:19:31,61.2
03/09/14,01:29:31,68.8
03/09/14,01:39:31,59.8
03/09/14,01:49:31,65.5
03/09/14,01:59:31,61.5
03/09/14,02:09:31,67.2
03/09/14,02:19:31,63.9
03/09/14,02:29:31,65.1
03/09/14,02:39:31,60.3
03/09/14,02:49:31,64.2
03/09/14,02:59:31,59.7
03/09/14,03:09:31,59.1
03/09/14,03:19:31,61
03/09/14,03:29:31,66
03/09/14,03:39:31,63.9
03/09/14,03:49:31,60.2
03/09/14,03:59:31,61.3
03/09/14,04:09:31,63.2
03/09/14,04:19:31,64.9
03/09/14,04:29:31,66
03/09/14,04:39:31,60.5
03/09/14,04:49:31,66.3
03/09/14,04:59:31,62.3
03/09/14,05:09:31,62.3
03/09/14,05:19:31,65.2
03/09/14,05:29:31,63.5
03/09/14,05:39:31,65.2
03/09/14,05:49:31,60.8
03/09/14,05:59:31,62.1
03/09/14,06:09:31,66.6
03/09/14,06:19:31,67.9
03/09/14,06:29:31,64
03/09/14,06:39:31,62.3
03/09/14,06:49:31,62.6
03/09/14,06:59:31,62.5
03/09/14,07:09:31,61.8
03/09/14,07:19:31,60.9
03/09/14,07:29:31,62.7
03/09/14,07:39:31,59.9
03/09/14,07:49:31,59.1
03/09/14,07:59:31,62.6
03/09/14,08:09:31,65.3
03/09/14,08:19:31,58.2
03/09/14,08:29:31,60.8
Thank You,
Natu
|
|
From: Thomas S. <t.s...@fz...> - 2014-03-10 16:36:39
|
Natu <incoming-sourceforge <at> rjl.com> writes: > ... > Here's the data in test4.dat > > 03/09/14,23:59:31,61.9 > 03/09/14,00:09:31,66.5 > ... the day is wrong in the first data line, it should be 03/08/14 |
|
From: Natu <inc...@rj...> - 2014-03-11 01:19:38
|
On 03/10/2014 09:36 AM, Thomas Sefzick wrote: > Natu <incoming-sourceforge <at> rjl.com> writes: >> ... >> Here's the data in test4.dat >> >> 03/09/14,23:59:31,61.9 >> 03/09/14,00:09:31,66.5 >> ... > the day is wrong in the first data line, > it should be 03/08/14 > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info Thank You for pointing that out. It was a bug in the program that generated the data. Problem solved. Nataraj |