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

Home » Public Forums » archive » Re: Draw a Histogram Plot
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: Draw a Histogram Plot [message #56900] Wed, 21 November 2007 14:39 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 21, 12:39 pm, JD Smith <jdsm...@as.arizona.edu> wrote:
> On Tue, 20 Nov 2007 13:46:01 -0700, David Fanning wrote:
>> Folks,
>
>> I've ticked another item off my life-time TO-DO list by writing a program
>> to give me a decent histogram plot when I want one.
>
>> I'm already thinking about version 1.2, but I thought I would get some
>> feedback before I spent too much more time on it.
>
>> You can learn about it and see how it works here:
>
>> http://www.dfanning.com/graphics_tips/histoplot.html
>
> Looks very nice, and I haven't tried it, but I'd call this a "bar plot"
> more than a histogram plot. If it would be possible to avoid all the
> vertical bar lines, it would be more useful to me. So essentially it
> would look like PSYM=10, but bins would go in the correct place, and have
> neatly finished ends. I usually kludge it by shifting a half bin, and
> adding endpoints on the X axis.
>
> JD

Just change the lines:
FOR j=0L, N_Elements(bins)-1 DO BEGIN
PlotS, [bins[j], bins[j]], min_value > [!Y.CRange[0],
histDataToPlot[j]] < max_value, $
Color=dataColor
ENDFOR

to only do j=0 and j=n_elements(bins)-1.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compile all obsolete routines at once
Next Topic: 3D Scatterplot with iMap/iImage

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

Current Time: Wed Oct 08 15:33:07 PDT 2025

Total time taken to generate the page: 0.00456 seconds