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 
Return to the default flat view Create a new topic Submit Reply
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 previous 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.")
[Message index]
 
Read Message
Read Message
Read Message
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 14:00:02 PDT 2025

Total time taken to generate the page: 0.00519 seconds