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

Home » Public Forums » archive » Re: histogram along y-axis
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: histogram along y-axis [message #51804 is a reply to message #51803] Fri, 08 December 2006 06:24 Go to previous messageGo to previous message
JH is currently offline  JH
Messages: 2
Registered: December 2006
Junior Member
Thank you for your answer.

But I'd like to plot a histogram with rectangle shape as the "plothist"
does.

PSYM=10 doesn't work.

JH

David Fanning 작성:

> JH writes:
>
>> Normal histogram plot along x-axis but I'd like to plot a histogram
>> along y-axis.
>>
>> How can I do that?
>
> Uh, well, like this:
>
> h = histogram(dist(256),omin=minval, omax=maxval)
> plot, h, scale_vector(findgen(n_elements(h)), minval, maxval)
>
> You can find SCALE_VECTOR here, or you can produce
> your own dependent vector in whatever way you like:
>
> http://www.dfanning.com/programs/scale_vector.pro
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to test for a vector/matrix of constants?
Next Topic: 2006 IDL Christmas Card

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

Current Time: Fri Oct 10 23:57:27 PDT 2025

Total time taken to generate the page: 1.43862 seconds