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 #56298 is a reply to message #56288] Thu, 11 October 2007 11:08 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> 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.

ok, that makes sense.


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

oddly, this has the same error:
IDL> colorbar, range=[min(loglevels([0,70.7107])),
max(loglevels([0,70.7107]))], /ylog, /vertical,
ytickv=LogLevels([0,70.7107])
% AXIS: Data coordinate system not established.
% Error occurred at: COLORBAR 412 /Users/balarsen/Documents/
idl/larsen/fanning/colorbar.pro
% $MAIN$
% Execution halted at: $MAIN$


this however, does work:
colorbar, range=[0,70.7107], /ylog, /vertical, /minor, $
ticknames=LogLevels([0,70.7107]), $
divisions=n_elements(LogLevels([0,70.7107]))

except there is n+1 ticks so there is one extra label (and in the
wrong place)

this is the equilivant that you can run without loglevels():
colorbar, range=[0,70.7107], /ylog, /vertical, /minor,$
ticknames=[.1,1,10], divisions=3


Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
[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 11:01:35 PDT 2025

Total time taken to generate the page: 1.60173 seconds