# Wild guess my $plot = $my_graph->plot(\@data) or die $my_graph->error; my $gd = $plot->png;