http://www.perlmonks.org?node_id=892551


in reply to Chart::Gnuplot Time Axis output

See Example 7 in the docs. All you need to do is define xtics with the labelfmt of your choice. Something like the following (untetsted, I don't have Chart::Gnuplot on this machine):
my $chart = Chart::Gnuplot->new( output => "/home/hmadhi/workspace/CommsNet/www/Plots/$kpi.png" +, title => {text=>"$kpi Success Rate on $node/$ran ($interface) + $date", }, xlabel => {text=>"Time",}, ylabel => "$kpi Succ_Rate", timeaxis => "x", xtics => { labelfmt => '%H:%M', }, );

Replies are listed 'Best First'.
Re^2: Chart::Gnuplot Time Axis output
by hmadhi (Acolyte) on Mar 11, 2011 at 05:07 UTC
    Thanks, it is working as expected.