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

Home » Public Forums » archive » Re: cgcolor, cgplot, and /WINDOW
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: cgcolor, cgplot, and /WINDOW [message #75521 is a reply to message #75520] Tue, 22 March 2011 21:01 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kwill writes:

> I was excited to learn today of David's Coyote Graphics packages, and
> downloaded them on both my laptop and desktop. I'm getting very
> puzzling results on one machine (but not the other). When I set the /
> WINDOW keyword in cgplot, cgcolor will not work for overplotting in
> color, displaying all subsequent points in a dark grey.
>
> My example:
>
> IDL> cgplot, indgen(10),color=cgcolor("Dodger Blue"), /window
> IDL> cgplot, indgen(10)+1, color=cgcolor("Hot Pink"), /window, /over
>
> This results in one blue and one grey line plotted on the screen. I do
> not have any color problems when the /WINDOW keyword is not set.
>
> I tried an identical series of commands on my laptop: it runs
> perfectly, producing both a blue and pink line. Both of my machines
> run IDL Version 7.1.1, Mac OS X (darwin x86_64 m64) on Snow Leopard
> 10.6.4.
>
> I'm baffled as to why this would be different between my two machines,
> but hopeful that I'm doing something wrong and that CGCOLOR plays
> nicely with the resizeable window in CGPLOT. Any ideas?

What happens if you use ADD instead of WINDOW on the second
command?

IDL> cgplot, indgen(10),color=cgcolor("Dodger Blue"), /window
IDL> cgplot, indgen(10)+1, color=cgcolor("Hot Pink"), /add, /over

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: lat/lon projection
Next Topic: AVHRR Calibration and Georeferencing

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

Current Time: Sun Oct 12 07:35:51 PDT 2025

Total time taken to generate the page: 0.64037 seconds