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

Home » Public Forums » archive » Plotsym + CGplot, symbols not overlapped correctly
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
Plotsym + CGplot, symbols not overlapped correctly [message #92582] Mon, 18 January 2016 15:11 Go to next message
Matteo is currently offline  Matteo
Messages: 28
Registered: August 2011
Junior Member
Hi,

can anybody help me by checking the following sequence?

IDL> cgwindow
IDL> plotsym,0
IDL> cgplot,[1,2,3],[4,5,6],psym=8,/color,/add
IDL> plotsym,2
IDL> cgoplot,[1,2,3],[2,3,4],psym=8,color='red',/add

It replaces the first set of symbols when overplotting the second set, when I'm obviously trying to get different symbols.

I tried also to use /NoErase, CGplots and "CGplot, ..., /Overplot" to no avail.


Thanks!
m
Re: Plotsym + CGplot, symbols not overlapped correctly [message #92585 is a reply to message #92582] Mon, 18 January 2016 21:30 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matteo writes:

>
> Hi,
>
> can anybody help me by checking the following sequence?
>
> IDL> cgwindow
> IDL> plotsym,0
> IDL> cgplot,[1,2,3],[4,5,6],psym=8,/color,/add
> IDL> plotsym,2
> IDL> cgoplot,[1,2,3],[2,3,4],psym=8,color='red',/add
>
> It replaces the first set of symbols when overplotting the second set, when I'm obviously trying to get different symbols.
>
> I tried also to use /NoErase, CGplots and "CGplot, ..., /Overplot" to no avail.

You want this:

cgwindow
cgwindow, 'plotsym',0, /add
cgplot,[1,2,3],[4,5,6],psym=8,/color,/add
cgwindow, 'plotsym',2, /add
cgoplot,[1,2,3],[2,3,4],psym=8,color='red',/add


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: Plotsym + CGplot, symbols not overlapped correctly [message #92595 is a reply to message #92582] Tue, 19 January 2016 21:57 Go to previous message
Matteo is currently offline  Matteo
Messages: 28
Registered: August 2011
Junior Member
Thank you David!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: "error initializing graphics device window" in the new Python bridge
Next Topic: QUERY_DICOM crashes on DICOMDIR

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

Current Time: Wed Oct 08 07:23:29 PDT 2025

Total time taken to generate the page: 0.00397 seconds