Error in coyote's colorbar [message #56310] |
Thu, 11 October 2007 09:19 |
Brian Larsen
Messages: 270 Registered: June 2006
|
Senior Member |
|
|
David et al,
I am picking up and improving the imagesc routine I started back in
this thread
http://groups.google.com/group/comp.lang.idl-pvwave/browse_f rm/thread/20e373e249126a98/66ddefbc6f26b007?lnk=gst&q=im agesc&rnum=1#66ddefbc6f26b007
and using http://www.dfanning.com/graphics_tips/logcb.html I have it
working well except for the colorbar which is crashing.
I am wondering if anyone more intimately associated with that routine
has seen this and knows a fix (either operationally on my side or in
the colorbar routine) for this crash.
IDL> Window, XSize=600, YSize=400, Title='Logarithmic Color Bar'
IDL> Erase, FSC_Color(ivory)
IDL> colorbar, zrange=[0.,70.7107], /ylog, /vertical,
ytickv=LogLevels([0.,70.7107])
% PLOT: Warning: Infinite plot range.
% AXIS: Data coordinate system not established.
% Error occurred at: COLORBAR 412 /Users/balarsen/Documents/
idl/larsen/fanning/colorbar.pro
% $MAIN$
% Execution halted at: $MAIN$
The issue is with the ytickv keyword but I am not sure how to fix it.
I realize there is badness associated with the log scaling of 0 but
loglevels has it figured out so maybe colorbar or axis can as well.
Cheers,
Brian
------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
|
|
|