Total and Utter Confusion! [message #77520] |
Fri, 09 September 2011 08:19 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I have to admit, I am totally and utterly confused about
IDL at the moment. I cannot get IDL 8.1 to behave the
same way twice in a row! (There is a chance that 30+
hard crashes over the past two days has something to
do with this, I guess.)
Here is a program:
;----------------------------------------------
PRO ContourPlotCrash
; Create a simple, random dataset for contouring:
data = RANDOMU(-3L, 9, 9)
levels =[0.0, 0.25, 0.5, 0.75]
; Contour function.
w = Window(DIMENSIONS=[500, 400])
loadCT, 33, RGB_TABLE=rgb, NCOLORS=4
ctr=contour(data, C_VALUE=levels, /CURRENT, $
POSITION=[0.1, 0.1, 0.9, 0.8], /FILL, $
c_Color=['red', 'green', 'yellow', 'blue'], $
;RGB_TABLE=rgb, RGB_INDICES=Indgen(4)
AXIS_STYLE=2)
names = String(levels,FORMAT='(F0.2)')
cb = Colorbar(TARGET=ctr, $
TICKNAME=names, $
POSITION=[0.1, 0.85, 0.9, 0.9])
END
;---------------------------------------------------
Here is my IDL session. I am running, at the moment,
with SOFTWARE rendering.
IDL Version 8.1, Microsoft Windows (Win32 x86_64 m64). (c) 2011, ITT
Visual Information Solutions
Installation number: 205509.
Licensed for personal use by David Fanning only.
All other use is strictly prohibited.
IDL> .compile -v 'C:\Users\David\IDLWorkspace81\Default
\contourplotcrash.pro'
% Compiled module: CONTOURPLOTCRASH.
IDL> contourplotcrash
% Compiled module: CONTOURPLOTCRASH.
% Loaded DLM: XML.
% Unable to create colorbar
% Execution halted at: CONTOURPLOTCRASH 17 C:\Users\David
\IDLWorkspace81\Default\contourplotcrash.pro
% $MAIN$
IDL> print, file_which('colorbar.pro')
% Compiled module: FILE_WHICH.
C:\Program Files\ITT\IDL\IDL81\lib\graphics\colorbar.pro
IDL> .compile colorbar
% Compiled module: COLORBAR.
IDL> .compile -v 'C:\Users\David\IDLWorkspace81\Default
\contourplotcrash.pro'
% Procedure was compiled while active: CONTOURPLOTCRASH. Returning.
% Compiled module: CONTOURPLOTCRASH.
IDL> contourplotcrash
% Compiled module: CONTOURPLOTCRASH.
% Unable to create colorbar
% Execution halted at: CONTOURPLOTCRASH 17 C:\Users\David
\IDLWorkspace81\Default\contourplotcrash.pro
% $MAIN$
Can anyone, anywhere make any sense of that!? :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|