Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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! :-)

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2018-02-25 21:55 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (315 votes). Check out past polls.