Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^9: Is this the correct structure?

by poj (Prior)
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


Replies are listed 'Best First'.
Re^10: Is this the correct structure?
by Anonymous Monk on Jul 06, 2013 at 18:01 UTC
    It works correctly now!
    Thank you for all your effort and time poj!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042933]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-03-29 16:40 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (352 votes). Check out past polls.