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

Home » Public Forums » archive » Need a Coffee Break?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Need a Coffee Break? [message #77537] Thu, 08 September 2011 12:44 Go to next message
David Fanning is currently offline  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 Go to previous message
Brian Wolven is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Contour Plot with Handful of Colors
Next Topic: Re: windows 64 bit test

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

Current Time: Wed Oct 08 18:40:06 PDT 2025

Total time taken to generate the page: 0.00587 seconds