Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Chart::Gnuplot Time Axis output

by broomduster (Priest)
on Mar 10, 2011 at 22:23 UTC ( #892551=note: print w/ replies, xml ) Need Help??


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', }, );


Comment on Re: Chart::Gnuplot Time Axis output
Select or Download Code
Re^2: Chart::Gnuplot Time Axis output
by hmadhi (Acolyte) on Mar 11, 2011 at 05:07 UTC
    Thanks, it is working as expected.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://892551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-07-13 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (251 votes), past polls