Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wie uebergebe ich ein hash an Chart::Gnuplot?

15 views
Skip to first unread message

Astrid

unread,
Jul 25, 2017, 5:40:45 AM7/25/17
to
Hallo!

Nutze Chart::Gnuplot.

Bisher sah es so aus:

my $velo = Chart::Gnuplot::DataSet->new(
xdata => \@yfix,
ydata => \@fn3,
style => "lines",
color => "black",
linetype => "solid",
width => 2,
);

das fn3 steckt jetzt aber in einem hash als

$fn3hash{'fn'}

wie kann ich das an das ydata uebergeben?

Gruss, Astrid

Megalodon

unread,
Jul 25, 2017, 10:09:39 AM7/25/17
to
Hi!

ydata => \$fn3hash{'fn'},

sollte das machen.

Grüße,
Wolf

Astrid

unread,
Jul 26, 2017, 4:08:27 AM7/26/17
to
Danke.

Da kommt dann aber leider

Not an ARRAY reference.

Megalodon

unread,
Jul 26, 2017, 6:36:27 AM7/26/17
to
Hmm. Da hab ich dann warscheinlich doppelt gemoppelt.
'\' gibt eine Reference zurück. Wahrscheinlich wird da schon eine Reference zurückgegeben. Wenn das so ist dann sollte:
ydata => $fn3hash{'fn'},
funktionieren.
Wenn das auch nicht geht, dann müßtest mal schauen was $fn3hash{'fn'} zurückgibt.

Grüße,
Wolf
0 new messages