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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to over plot after using "cgZplot" [message #82686] Tue, 08 January 2013 10:30
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
idlhelp writes:

> but getting this error while running your code
> 'Attempt to call undefined procedure/function: 'CGOVERPLOT__DEFINE'.

Here are the steps to follow whenever a Coyote Library
routine doesn't work as expected:

http://www.idlcoyote.com/code_tips/fixcoyoteprogram.php

I expect you will have to go no further than Step 1 to
solve this crisis. :-)

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: how to over plot after using "cgZplot" [message #82687 is a reply to message #82686] Tue, 08 January 2013 10:26 Go to previous message
abc is currently offline  abc
Messages: 46
Registered: March 2011
Member
On Tuesday, January 8, 2013 6:51:09 PM UTC+1, idlhelp wrote:
> 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.

Thank David,
but getting this error while running your code
'Attempt to call undefined procedure/function: 'CGOVERPLOT__DEFINE'.
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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 Oct 08 19:27:42 PDT 2025

Total time taken to generate the page: 0.00421 seconds