Need a Coffee Break? [message #77537] |
Thu, 08 September 2011 12:44  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
For those of you who would enjoy a coffee break (or
who wish to join me for something stronger), you might
try running the following program in IDL 8.1. It will
crash my Windows machine every single time.
I have narrowed the problem to the TICKNAME keyword
in the Colorbar() function. Remove that and all is well.
I am especially curious to see what this does on other
operating systems. :-)
Please be sure to close all your applications besides
IDL 8.1 when you try this, or you might be spending the
rest of the day re-installing software.
Cheers,
David
;--------------------------------------------------------
PRO ContourPlotCrash
; Create a simple, random dataset for contouring:
data = RANDOMU(-3L, 9, 9)
levels =[0.05, 0.1, 0.15, 0.2, 0.3, 0.44, 0.6, 0.75]
; Contour function.
w = Window(DIMENSIONS=[500, 400])
loadCT, 33, RGB_TABLE=rgb
ctr=contour(data, C_VALUE=levels, /CURRENT, $
POSITION=[0.1, 0.1, 0.9, 0.8], /FILL, $
RGB_TABLE=rgb)
names = StrTrim(levels,2)
cb = Colorbar(TARGET=ctr, $
TICKNAME=names, $
POSITION=[0.1, 0.85, 0.9, 0.9])
END
;--------------------------------------------------------
--
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.")
|
|
|
Re: Need a Coffee Break? [message #84626 is a reply to message #77537] |
Thu, 08 September 2011 13:02  |
Brian Wolven
Messages: 94 Registered: May 2011
|
Member |
|
|
Program ran, window and plot were created, nothing else happened. No crashes.
Using IDL 8.1 (command line) under OS X 10.6.8 on a Macbook Pro (15", 2.53 GHz Intel Core i5, Built-in Intel HD graphics and PCIe NVIDIA GeForce GT 330M).
The colorbar labels *do* look horrific (four trailing zeros after the last significant digit), but not enough to make my brain crash.
|
|
|