|
From: Thomas S. <t.s...@fz...> - 2007-10-10 18:54:05
|
if all data are in one file then it would be a good idea to have the
data of one tape in a block, separated by 2 empty lines from the
next block.
then it's easy to plot separate curves for the different tapes with
plot "dlt-data" index 0 using 1:4 title 'Corrected Errors/GB Tape 1', \
"" index 1 using 1:4 title 'Corrected Errors/GB Tape 2', \
"" index 2 using 1:4 title 'Corrected Errors/GB Tape 3'
the data file could then look like
----- dlt-data start ------
2001/01/01 11:53 DLT7000-002 290
2001/01/01 11:54 DLT7000-002 100
2001/01/01 11:55 DLT7000-002 10
2001/01/01 11:56 DLT7000-002 200
2001/01/01 11:53 DLT7000-003 90
2001/01/01 11:54 DLT7000-003 300
2001/01/01 11:55 DLT7000-003 210
2001/01/01 11:56 DLT7000-003 100
2001/01/01 11:53 DLT7000-004 190
2001/01/01 11:54 DLT7000-004 230
2001/01/01 11:55 DLT7000-004 60
2001/01/01 11:56 DLT7000-004 90
----- dlt-data end ------
Dan Langille wrote:
>
> On 10 Oct 2007 at 8:19, Thomas Sefzick wrote:
>
>> Dan Langille wrote:
>> >
>> > Hi folks,
>> >
>> > I've managed to get my first graph working with gnuplot. I am
>> > plotting data from my tape library. I want to see the errors per
>> > GB.
>> > It would be niced to see all the tapes in one set of output.
>> >
>> > There are the commands I am using to generate the plot:
>> >
>> > set timefmt "%Y/%m/%d %H:%M"
>> > set xrange ["2000/12/01":"2004/05/01"]
>> > set format x "%Y/%m/%d"
>> > #set timefmt "%Y/%m%d %H:%M"
>> > set timestamp "Graph created: %Y/%m/%d %H:%M"
>> > plot "dlt-data" using 1:4 title 'Corrected Errors/GB'
>> >
>> > Here is the [sample] input data I am using:
>> >
>> > 2001/01/01.11:53 DLT7000-002 290
>> > 2001/01/01.11:54 DLT7000-002 100
>> > 2001/01/01.11:55 DLT7000-002 10
>> > 2001/01/01.11:56 DLT7000-002 200
>> >
>> > The above is: date/time, tape label, and errors detected.
>> >
>> > What suggestions do you have for this plot? Especially for getting
>> > multiple graphs in there, one for each tape label.
>
>> are the data
>> - in single files, i.e. one file per tape?
>> - in one file?
>
> Undecided. We don't have enough data yet to consider more than one
> file. But we could do either one file or one file per tape. I am
> leaning towards one file per tape.
>
>> - - data of different tapes separated? if yes, how?
>> - - or mixed?
>
> I would expect all data for one tape to be in the same file. If we
> went for all tapes in one file, one of the colums would identify the
> tape in question.
>
> At present, all tapes are of the same type.
>
> --
> Dan Langille - http://www.langille.org/
> Available for hire: http://www.freebsddiary.org/dan_langille.php
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/date-time-formats-tf4595886.html#a13142244
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|