Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-09-17 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (56 votes), past polls