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

Home » Public Forums » archive » Question on plotting a histogram with original values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Question on plotting a histogram with original values [message #8140] Thu, 06 February 1997 00:00
David van Kuijk is currently offline  David van Kuijk
Messages: 3
Registered: November 1995
Junior Member
Hi

I am using IDL3.0

When I use the histogram-function I find it very annoying that I can't see
which range of data has been put in which bin. Has anybody written a
function which returns these values, or the mean values for each bin?

To give an example:
PRO testHisto

testAr = [-44,0,-42,-58,-48,-25,-26,-1,-46,-36,-16,-55,-6,-81,10,-31, -38,$
-34,-49,-80,2,-40,-65,-3,10,-31,-85,-34,-27,-14,-41,-73,-67, 3,-51,$
-6,0,-107,-7,-36,-33,-59,-2,-99,-22]
testHisto = histogram(testAr, BINSIZE = 10)
plot, testHisto, PSYM = 10
END

This program will plot a nice histogram, but the values on the x-axis just
show the rank number of the bins, and the information on the ranges of the
original data is lost.

I am sure the problem is solvable, but I don't want to spend too much time on
this if somebody else already has found a solution.

Thanks,
David van Kuijk
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plot symbols
Next Topic: Re: Contour and 'Z-buffer'

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

Current Time: Wed Oct 08 15:36:18 PDT 2025

Total time taken to generate the page: 0.00413 seconds