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

Home » Public Forums » archive » Re: Colour bars display black?
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
Re: Colour bars display black? [message #67794] Sat, 29 August 2009 21:36
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tessp writes:

> Works like a charm. Thank you David, I don't know where the IDL users
> community would be without you!

Using iTools, probably. ;-)

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.")
Re: Colour bars display black? [message #67795 is a reply to message #67794] Sat, 29 August 2009 19:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tessp writes:

> This is my first attempt at a colour bar, and I'm having some luck but
> not a lot! I've tried some really simple test code, but get a colour
> bar that shows only black. Correct position and divisions, with
> annotations, but black.Help please! - I'm sure it's really
> simple...I'm running this on a PC, using putty and Xming; the IDL code
> runs on a Mac server running OSX, using IDL v7.0. I have stored David
> Fanning's excellent colorbar.pro in my directory (thank goodness for
> DF) and call it from this simple code:

In addition to the COLOR keyword on the DEVICE command,
you also need the BITS_PER_PIXEL=8 keyword set:

Set_Plot, PS
Device, COLOR=1, BITS_PER_PIXEL=8

You might want to investigate better ways to set up
your PostScript device, or sooner or later you will
run into other archaic oddities.

http://www.dfanning.com/documents/programs.html#FSCPSCONFIG

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Array elements extraction
Next Topic: copying text from table or text widgets

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

Current Time: Sun Oct 12 02:07:19 PDT 2025

Total time taken to generate the page: 0.81138 seconds