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

Home » Public Forums » archive » Log histogram = FAIL
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: Log histogram = FAIL [message #72042 is a reply to message #71962] Tue, 03 August 2010 12:24 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Chris,
just to confirm to the forum, that it is the histogram keyword that
causes the unwanted results. I still had this in memory from the tech
preview, but since it is not documented I cannot complain here. :-)

I will test the barplot routine instead. Hopefully one can turn off
the sides of the bars so my distributions do not look like cities with
sky scrapers.

Haje


On Aug 3, 2:17 pm, Chris Torrence <gorth...@gmail.com> wrote:
> On Aug 2, 12:17 pm, Haje Korth <hajeko...@gmail.com> wrote:
>
>> Plotting log histograms using new graphics system in IDL does not work
>> right. Try
>
>> IDL> a=findgen(10)+1
>> IDL> b=10./a^2
>> IDL> b[8]=0
>> IDL> p=plot(a,b,/histogram,/ylog,yrange=[1.0d-3,10])
>
>> Then tell me what happened to the last data point. I understand that 0
>> is an illegal log value, but IDL should be smart enough to filter
>> this. BTW, this works fine in direct graphics.
>
>> Haje
>
> Hi Haje,
>
> The log plot seems to work correctly without the histogram keyword:
>
> p=plot(a,b,'-o',/ylog,yrange=[1.0d-3,10])
>
> We didn't document the histogram keyword, because we wanted people to
> start using barplot() instead. Unfortunately, for IDL 8.0, BARPLOT
> doesn't handle logarithmic axes. However, I have just fixed the
> barplot code, and it will be available in the next IDL update.
>
> Cheers,
> Chris Torrence
> IDL Software Development Manager
> ITTVIS
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: oplot and oploterror, later fails to work
Next Topic: Re: yet another 2d matching question

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

Current Time: Sat Oct 18 08:46:13 PDT 2025

Total time taken to generate the page: 1.84053 seconds