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

Home » Public Forums » archive » Re: cgHistoplot and logarithmic axes
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: cgHistoplot and logarithmic axes [message #80211 is a reply to message #79861] Tue, 22 May 2012 10:00 Go to previous messageGo to previous message
willettk is currently offline  willettk
Messages: 20
Registered: October 2006
Junior Member
On Thursday, April 19, 2012 8:24:05 AM UTC-5, David Fanning wrote:
> David Fanning writes:
>
>>
>> Kwill writes:
>>
>>> I've been using David's excellent CG package for a while now, and have a question regarding cgHistoplot and logarithmic axes. I would like to make a histogram with logarithmic values on the y-axis (the histogram density). cgHistoplot will accept /YLOG as a keyword and plots the values, but the top axis is always misplaced; it appears in the bottom 25% of the plot. Any tips as to how this can be fixed?
>>>
>>> My version of cgHistoplot was last updated on 8 Nov 2011. Example code:
>>>
>>> IDL> x = randomu(seed,1000)
>>> IDL> cgHistoplot, x, min_val=1, /ylog
>>
>> Alright, see what you think of this:
>>
>> http://www.idlcoyote.com/misc/cghistoplot.pro
>>
>> If it works, and doesn't bugger everything else up,
>> I'll check it in.
>>
>> I've defined a new LOG keyword to represent the histogram
>> count on a logarithmic scale.
>>
>> x = randomu(seed,1000)
>> cgHistoplot, x, /fill, binsize=0.1, /log
>
> Any reaction whatsoever to this updated program? Should
> I check it in?

My apologies for not checking this for so long, David. The fix on my computer looks excellent (and it appears that you checked it into the latest CG version). Thanks for doing this.

- kw

>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PyQT widgets?
Next Topic: IDL Help Annoyance

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

Current Time: Wed Oct 08 19:55:41 PDT 2025

Total time taken to generate the page: 0.00206 seconds