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

Home » Public Forums » archive » Re: how to over plot after using "cgZplot"
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: how to over plot after using "cgZplot" [message #82689 is a reply to message #82687] Tue, 08 January 2013 10:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
idlhelp writes:

> I have a small problem. My first plot work fine with cgZplot command but I want to overplot another plot on it. How can i do that. I am doing in the following way.
>
> cgZPlot,a,b,color='black'
> cgZPlot,c,d,color='red',/overplot
>
> but it doesn't work.

I'd do it like this:

a = Indgen(101)
b = cgDemoData(17)
c = Indgen(101)
d = cgDemoData(17)
oplotObj = Obj_New('cgOverPlot', c, d, color='red')
cgZPlot, a, b, OPLOTS=oplotObj


Note, that if you are running IDL 8 and above, you can
create the oplotObj like this:

oplotObj = cgOverplot(c, d, color='red')

This is true of an Coyote Graphics object, such as cgMap, etc.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Another IDL 8.2 Workbench Problem
Next Topic: Specifying a particular LAPACK implementation using the standard IDL7 LAPACK DLM?

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

Current Time: Wed Dec 03 14:03:40 PST 2025

Total time taken to generate the page: 1.60731 seconds