in reply to Re^4: How do I make a histogram Question?
in thread How do I make a histogram Question?
At least that runs without error. On my Windows Vista box, I need to view 'blah.txt' in something like wordpad. For me, notepad ignores the newlines.use Math::GSL::Histogram qw/:all/; use Math::GSL qw/:all/; $file = "blah.txt"; $mode = 'w'; $h = gsl_histogram_alloc(3); gsl_histogram_set_ranges($h, [0, 41, 61, 100], 4); gsl_histogram_increment ($h, 0); gsl_histogram_increment ($h, 41); gsl_histogram_increment ($h, 61); gsl_histogram_increment ($h, 100); $stream = gsl_fopen $file, $mode; gsl_histogram_fprintf($stream, $h, '%f', '%f');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How do I make a histogram Question?
by Niner710 (Sexton) on Jan 30, 2009 at 00:45 UTC |