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

Home » Public Forums » archive » 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
cgcolor, cgplot, and /WINDOW [message #75522] Tue, 22 March 2011 20:55
willettk is currently offline  willettk
Messages: 20
Registered: October 2006
Junior Member
Hi,

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?

- thanks,
Kwill
[Message index]
 
Read Message
Previous Topic: lat/lon projection
Next Topic: Experts from Cyberoam, KRAA security and others to speak @Security Conference (Aril 9th, Mumbai)

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

Current Time: Wed Oct 08 18:12:57 PDT 2025

Total time taken to generate the page: 0.00468 seconds