in reply to Re: 2D binning
in thread 2D binning
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 2D binning
by austinby (Initiate) on Feb 19, 2010 at 16:36 UTC | |
I tested the code sent by spx2 and BrowserUk after installing the List::AllUtils and Data::Dump modules. I get "4" as output from spx2's code. Not sure what the "4" means. I get a "Global symbol "$Y" requires explicit package name at line " error with BrowserUk's code. When I change the positions of $Y and $X, I get a "Global symbol "$X" requires explicit package name at line " There's a script online that does exactly what I'm trying to do (http://homepages.ulb.ac.be/~dgonze/SCRIPTS/PERL/histogram-2d.pl), but requires user-defined inputs. I'd like to do this such that all the user needs is the input file. | [reply] [d/l] [select] |
by BrowserUk (Patriarch) on Feb 19, 2010 at 16:59 UTC | |
You must be using a pre-5.10 version of Perl. Try:
You can vary the number of datapoints generated by using a command line like:
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
by spx2 (Deacon) on Feb 19, 2010 at 17:01 UTC | |
| [reply] |