gnuplot({ "title" => "", "output type" => "png", "output file" => "temp.png", "x-axis label" => "$day.$month.$year $time - $eday.$emonth.$eyear $etime", "y-axis label" => "", "xdata" => "time", "format" => ["x", "%d.%m"], "timefmt" => "%Y-%m-%d-%H:%M", "xrange" => "[\"$dates[$index]\" : \"$dates[$j]\"]", "extra_opts" => join("\n","set grid", "set nokey", "set linestyle 1 lt 3 l w 10","set lmargin 10","set rmargin 10","set tmargin 9","set bmargin 9" )}, [{ "style" => "lines ls 1", "type" => "columns"}, [@dates],[@atemp] ],); my $type = "AirTemp.png"; my $ftype = "Days" . "$days" . "ATemp.png"; my $finalgraph = printGraph($station,$type,$ftype); }