Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: Creating Heat Map in perl

by space_monk (Chaplain)
on Sep 04, 2013 at 10:16 UTC ( #1052280=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Creating Heat Map in perl
in thread Creating Heat Map in perl

Very minor thing s/piont_datas/point_datas/g;. The only reason the code doesn't generate an error is because you made this spelling mistake consistently.
What is the last line doing? $hmap->matrix simply returns a reference to the density matrix - on its own it does nothing.

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Comment on Re^3: Creating Heat Map in perl
Download Code
Replies are listed 'Best First'.
Re^4: Creating Heat Map in perl
by huzefa52 (Novice) on Sep 04, 2013 at 12:29 UTC
    Thanks for finding my mistake. Now, I am getting the heatmap image in my $img variable i.e $img = $hmap->draw; But how to use this $img value to get image in gif/png format. Because there is no plot option defined in Imager::Heatmap module.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2015-11-27 12:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (728 votes), past polls