comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » PSYM=10 problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PSYM=10 problem [message #17920 is a reply to message #17831] Tue, 16 November 1999 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Liam Gumley <Liam.Gumley@ssec.wisc.edu> writes:
>
> Laurent Chardon wrote:
>> Is there a good reason why the first bin plotted by the plot/PSYM=10
>> combination is half the size of all the others? Can I get around this
>> behaviour? I want all the bins to be of equal size.
>
> A few months ago in this newsgroup, David Fanning convinced me that
> PSYM=10 would never give an accurate representation of a histogram, and
> that the only way to do it right is to plot the histogram yourself. As
> you've noted, the problem is getting the edges of the bins in the right
> position. I came up with the following procedure which I believe
> computes and plots a 'correct' histogram (let me know if I'm wrong!):

Thanks to Liam for his sample program. I also have a histogram
plotter called PLOTBIN. While it leaves the histogramming to you
(unlike Liam's), it does a pretty good job of actually plotting the
right thing.

It is distinguished by the ability to plot bins of different widths,
which is especially nice on log-log graphs. You can specify a single
binsize with the WIDTH keyword, or give a vector of widths, one for
each bin.

Craig
http://cow.physics.wisc.edu/~craigm/idl/idl.html

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: add lines to a plot window
Next Topic: add lines to a plot window

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:31:52 PDT 2025

Total time taken to generate the page: 0.00526 seconds