Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to add two array data into one GD plot?

by zwon (Abbot)
on Jul 29, 2012 at 04:05 UTC ( #984258=note: print w/replies, xml ) Need Help??


in reply to How to add two array data into one GD plot?

You have four values all for the same moment of time. Here are two possible solutions. First, if you want them as two different pairs you should join them like this:

@data = ( ["2010/03/29 14:00:00", "2010/03/29 14:00:00"], [13, 15], [20, 21], );
Second, if they are really for the same time, maybe they should be like this:
@data = (["2010/03/29 14:00:00"], [13], [15], [20], [21],);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984258]
help
Chatterbox?
[marto]: under certain circumstances perhaps
[RonW]: as I understand it, RPerl "compiles" a subset of Perl to C, so I would expect the final executable to run a lot faster
[RonW]: Is there an English language version of the site?
[LanX]: but Afaik Perl is on average about 10-20 times slower than C
[LanX]: no
[LanX]: but I could ask Herbert to elaborate

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-05-22 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?