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

Home » Public Forums » archive » cgplot clobbers user symbols
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
cgplot clobbers user symbols [message #76084] Wed, 18 May 2011 13:01
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
I just discovered a behaviour of cgPlot that disturbs me somewhat. If I define a user symbol using USERSYM and then use it in cgPlot using PSYM=8, it works fine. But I follow it up with PSYM=something_else, my user symbol gets clobbered and the next call with PSYM=8 plots it with something_else.

For example:

usersym, [-1,1], [-1,1] ; diagonal line
; this gives a diagonal line, as expected:
cgplot, findgen(10), findgen(10), psym=8
; this gives plusses, as expected:
cgplot, /overplot, findgen(10), findgen(10) + 0.5, psym=1
; I expected diagonal lines, but I get plusses:
cgplot, /overplot, findgen(10), findgen(10) - 0.5, psym=8


Is this "expected behaviour"?

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Reducing the number of vertices in an isosurface...
Next Topic: Re: Licensing installs and expired maintenance contracts

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

Current Time: Fri Oct 10 11:39:22 PDT 2025

Total time taken to generate the page: 0.48777 seconds