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

Home » Public Forums » archive » Re: Histogram with logarithmic filling
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 with logarithmic filling [message #48844 is a reply to message #48843] Wed, 31 May 2006 10:11 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jo Klein writes:

> Hm why not? Have you tried setting the /ylog keyword to plothist? What
> happens then?

Well, it is a *little* more complicated than that because
the author of PLOTHIST never anticipated someone might actually
set the PLOT YLOG or XLOG keywords. I've only investigated
the case where YLOG=1, but you have to change a number of
yfill values to 1 (instead of 0), and you have to remember
that !Y.CRANGE contains the exponents of the range values,
not the values themselves when you are in a LOG plot. So you
need something like this:

Yfill = Yfill > 10^(!Y.CRANGE[0]) < 10^(!Y.CRANGE[1])

In place of this:

Yfill = Yfill > !Y.CRANGE[0] < !Y.CRANGE[1]

But about 10 minutes work should set you right for log plots. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Mac OSX and IDL6.3
Next Topic: Re: desallocate an array of double passed by a library

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

Current Time: Fri Oct 10 10:21:27 PDT 2025

Total time taken to generate the page: 0.40269 seconds