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 #51809 is a reply to message #51806] Fri, 08 December 2006 05:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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: Sat Oct 11 21:12:11 PDT 2025

Total time taken to generate the page: 2.24118 seconds