Re: Colour bars display black? [message #67794] |
Sat, 29 August 2009 21:36 |
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  |
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.")
|
|
|