From 76bf44591aa2dd0c3f6c81243cd70b7c2cc6b6c6 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 20 Mar 2019 20:25:25 +0000 Subject: allow plotting multiple log files --- plot-log-plotly.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot-log-plotly.pl b/plot-log-plotly.pl index 27992af..10f32d5 100644 --- a/plot-log-plotly.pl +++ b/plot-log-plotly.pl @@ -8,7 +8,7 @@ use Chart::Plotly; use Chart::Plotly::Plot; use Chart::Plotly::Trace::Scatter; -my @rows = path($ARGV[0])->lines_utf8({chomp=>1}); +my @rows = map { path($_)->lines_utf8({chomp=>1}) } @ARGV; my @column_names = qw(humidity temperature battery); my %data_for_src; -- cgit v1.2.3