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

Home » Public Forums » archive » Re: Error in coyote's colorbar
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: Error in coyote's colorbar [message #56299 is a reply to message #56298] Thu, 11 October 2007 10:56 Go to previous messageGo to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"Brian Larsen" <balarsen@gmail.com> wrote in message
news:1192124714.944888.178400@v3g2000hsg.googlegroups.com...
>> change the lower limit in range to something other than 0.
>> You are trying to plot from -inf to 70.
>> That should do it.
>
> I agree, but the issue is that in general (or kinda general) you don't
> really know how far above zero to go, like sometimes .1 is far enough
> and others .001 is what it takes for the plot. I was hoping to let
> loglevels and idl figure out the right answer,
>
> colorbar, yrange=[0.1,70.7107], /ylog, /vertical,$
> ytickv=LogLevels([0.1,70.7107])
>
> does work but it doesn't look right.
>
> How does idl properly handle?
> plot, alog10(findgen(100)/10.)

this is ploting an array with -inf in it, which is ignored by plot.
It then is plotting the next value (for instance -1) so it is fine.
You are explicilty telling the plot command to plot from -inf to 70,
which it cannot do.

how about setting range = [min(loglevels[0,70.7107]),
max(loglevels[0,70.7107])] ?

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: structure into strcuture
Next Topic: map_set and limit question

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

Current Time: Sun Oct 12 01:01:58 PDT 2025

Total time taken to generate the page: 1.67968 seconds