Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^9: Is this the correct structure?

by poj (Priest)
on Jul 06, 2013 at 17:50 UTC ( #1042933=note: print w/ replies, xml ) Need Help??


in reply to Re^8: Is this the correct structure?
in thread Is this the correct structure?

You have 2 problems. First the data array need to be transposed to create 4 rows with 17 columns

while(<IN>){ chomp; my @cols = split/\s+/,$_; for my $ix (0..$#cols){ push @{$data[$ix]}, $cols[$ix]; } }

and second, in the creation of the dataset use

ydata => [ @{$data[$y]} ],
otherwise you create a reference to the same data each time

poj


Comment on Re^9: Is this the correct structure?
Select or Download Code
Re^10: Is this the correct structure?
by Anonymous Monk on Jul 06, 2013 at 18:01 UTC
    YES!
    It works correctly now!
    Thank you for all your effort and time poj!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-08-28 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls