timeseries/tsplot

21 lines
358 B
Plaintext
Raw Normal View History

#!/usr/bin/perl -w
use strict;
use TimeSeries;
2006-01-02 16:18:46 +01:00
binmode STDOUT, ':raw';
my $ts = TimeSeries->new();
while (<>) {
my @legend = split;
shift @legend; # first must be for timestamp
$ts->legend(@legend);
last;
}
while (<>) {
my ($timestamp, @values) = split();
$ts->add_timestring($timestamp, @values);
}
my $g = $ts->plot();
print $g