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

Home » Public Forums » archive » Re: Colormap in idl -vm
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: Colormap in idl -vm [message #38678] Wed, 24 March 2004 06:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
PJL writes:

> I have this same colormap problem in IDL Virtual Machine on an SGI
> running IRIX 6.5. Adding the DEVICE, DECOMPOSED=0 does not help.

Well, I'm not overly fond of using DEVICE DECOMPOSED
in code anyway. Plays havoc with what you are trying
to do, usually.

I prefer using device-independent color methods. Here is
a Virtual Machine test program that uses FSC_COLOR to
load colors. You can find FSC_COLOR here:

http://www.dfanning.com/programs/fsc_color.pro

Do this:

1. Start a fresh IDL session.

2. Compile VM_TEST

IDL> .compile vm_test

3. Type RESOLVE_ALL:

IDL> Resolve_All

4. Save the routines in a save file:

IDL> Save, Filename='vm_test.sav', /Routines

5. Exit IDL.

Now run the save file in the Virtual Machine. What colors
are you seeing?

Cheers,

David

;**********************************************************
PRO VM_TEST_EVENT, event
Widget_Control, event.top, /Destroy
END

PRO VM_TEST

base = Widget_Base(Column=1)
draw = Widget_Draw(base, XSize=400, YSize=400)
button = Widget_Button(base, Value='Quit')
Widget_Control, base, /Realize

bg = FSC_Color('charcoal', !D.Table_Size-2)
ac = FSC_Color('green', !D.Table_Size-3)
dc = FSC_Color('yellow', !D.Table_Size-4)

Plot, Findgen(11), Background=bg, Color=ac, /NoData
OPlot, Findgen(11), Color=dc

XManager, 'vm_test', base

END
;**********************************************************

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: changing button text for dialog_message
Next Topic: widget objects

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

Current Time: Fri Oct 10 05:15:39 PDT 2025

Total time taken to generate the page: 0.64306 seconds