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

Home » Public Forums » archive » Screen color (x device) on mac
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
Screen color (x device) on mac [message #86223] Fri, 18 October 2013 16:54 Go to next message
laura.hike is currently offline  laura.hike
Messages: 87
Registered: September 2013
Member
Hi,

I know this is a trivial question, but I can't find the answer anywhere. I'm running IDL 8.2 from the command line on a Mac. It's been forever since I made live screen plots on a Mac, and the color keeps coming up white on black. I've tried

Device, Decomposed=0

and loading several different color tables (and then starting new windows), but it always comes out the same. I could just make a PS plot using a pro file, but the live plots are better while in testing mode.

Thanks
Re: Screen color (x device) on mac [message #86224 is a reply to message #86223] Fri, 18 October 2013 19:38 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Fri, 18 Oct 2013 16:54:02 -0700 (PDT), Lucas J. wrote:

> Hi,
>
> I know this is a trivial question, but I can't find the answer anywhere. I'm running IDL 8.2 from the command line on a Mac. It's been forever since I made live screen plots on a Mac, and the color keeps coming up white on black.
> [...]

I added the following commands to the startup file on my Windows
computer:

!p.background=!d.n_colors-1 ; white background
!p.color=0 ; default color = black

This works fine. I think, it should work for a Mac too.

Cheers, Heinz
Re: Screen color (x device) on mac [message #86229 is a reply to message #86224] Sat, 19 October 2013 15:00 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Heinz Stege writes:

> I added the following commands to the startup file on my Windows
> computer:
>
> !p.background=!d.n_colors-1 ; white background
> !p.color=0 ; default color = black
>
> This works fine. I think, it should work for a Mac too.

Oh, my gosh, don't do that! You'll never understand colors if you do
that! :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Screen color (x device) on mac [message #86238 is a reply to message #86223] Sun, 20 October 2013 09:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lucas J. writes:

> I know this is a trivial question, but I can't find the answer anywhere. I'm running IDL 8.2 from the command line on a Mac. It's been forever since I made live screen plots on a Mac, and the color keeps coming up white on black. I've tried
>
> Device, Decomposed=0
>
> and loading several different color tables (and then starting new windows), but it always comes out the same. I could just make a PS plot using a pro file, but the live plots are better while in testing mode.

The simplest answer is to use Coyote Graphics to do your plotting. Then
you screen output will be identical to your PostScript output. In fact,
you will be able to create PostScript output (and from that high-quality
raster output) trivially (usually by simply using the OUTPUT keyword).
You can see examples of 60 some IDL plots using this technique here:

http://www.idlcoyote.com/gallery/index.html

You can learn more about Coyote Graphics here:

http://wwww.idlcoyote.com/graphics_tips/coyote_graphics.php

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Where does catalyst call the catEventDispatcher?
Next Topic: Co-Kriging implementation

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

Current Time: Wed Oct 08 13:36:49 PDT 2025

Total time taken to generate the page: 0.00430 seconds