Thank you David for your development! Honestly I chose PLplot just because it's 
a little easier. For example, to plot a histogram, I just type 
$chart->histogram($data, $binNumber). I don't have to necessarily calculate how 
bins would be. The only pity is that PDL::Graphics::PLplot doesn't give as many 
options for beauty as plplot actually does.

And thank you for the hint of sending bin data only to Gnuplot. Unfortunately I 
also have to draw some scatter plots with lots of dots.

Actually I like the idea of Prima although I just get to know it today. 
Definitely I'll try your module. It is so great to have a graphic library 
natively in Perl.

Best,
XZ

From: David Mertens [mailto:[email protected]]
Sent: Tuesday, December 18, 2012 2:27 PM
To: Zheng, Xin (NIH) [C]
Cc: [email protected]
Subject: Re: [Perldl] PLplot histogram question

Xin -
Although the Gnuplot does transfer data over a pipe, I suspect that you could 
do all of your binning calculations in PDL and send the bar heights to Gnuplot. 
Hopefully you have quite a bit less histogram bars (ideally 20 or 30, I expect) 
than data points (thousands? millions?), and you would have to do the same work 
for PLplot anyway. I can't imagine there's a real performance penalty with 
Gnuplot.

PLplot is a great plotting library and it sounds like you have your reasons for 
choosing it. But if you're experiencing trouble with the Gnuplot or Prima, then 
Craig & Dima or I would like to know about it so that we can improve the 
interfaces and/or documentation. For my part, I need to add the various 
functions of PDL::Graphics::Prima to the docs database. Would that have helped 
with regard to Prima?

David

On Tue, Dec 18, 2012 at 9:00 AM, Zheng, Xin (NIH) [C] 
<[email protected]<mailto:[email protected]>> wrote:
Thank you for the links. I work on some huge data. So first the Gnuplot seems 
not efficient enough since it relies on pipe to transfer data. The Prima looks 
not easy. I am going to use bargraph in plplot. PLplot is good. Looking forward 
to more functions in PDL::Graphics::PLplot.

Xin

From: David Mertens 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, December 18, 2012 1:17 AM
To: Zheng, Xin (NIH) [C]
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Perldl] PLplot histogram question

Check out the bargraph method. In case you haven't seen it yet, 
PDL::Graphics::PLplot is documented in chapter 9 of the PDL Book: 
http://pdl.perl.org/content/pdl-book-toc.html
That having been said, there is quite a bit of active work these days on 
PDL::Graphics::Gnuplot and PDL::Graphics::Prima. I'll be happy to expound at 
greater length, if you wish. :-)
david

On Mon, Dec 17, 2012 at 4:24 PM, Zheng, Xin (NIH) [C] 
<[email protected]<mailto:[email protected]>> wrote:
Hi there,

I am wondering if there's a way to draw frequency in histogram, not counts. 
Thanks a lot for any help.

Best,

Xin


_______________________________________________
Perldl mailing list
[email protected]<mailto:[email protected]>
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl



--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan



--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to