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

Home » Public Forums » archive » Using non-default symbols in IPLOT
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: Using non-default symbols in IPLOT [message #75082 is a reply to message #75014] Tue, 15 February 2011 12:23 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
fgg wrote:
> On Feb 15, 11:10 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
>> On Feb 14, 5:24 pm, fgg <fabioguimaraesgoncal...@gmail.com> wrote:
>>
>>> I was wondering if I could use letters or numbers as the plotting
>>> symbol (instead of SYM_INDEX = 1-8) that marks points in IPLOT? I
>>> guess the answer has to do with SYM_OBJECT, but it's not clear to me
>>> how to use it.
>> mysymbol=idlgrtext('A',alignment=0.5,vertical_alignment=0.5, color=[255,0,0] ,font=idlgrfont('courier',size=1000))
>> iplot,sin(dindgen(50)*!dpi/49d0),sym_object=mysymbol
>
> Paulo, I'm getting the following error when I try to create
> 'mysymbol':
>
> IDL>
> mysymbol=idlgrtext('A',alignment=0.5,vertical_alignment=0.5, color=[255,0,0] ,font=idlgrfont('courier',size=1000))
>
> mysymbol=idlgrtext('A',alignment=0.5,vertical_alignment=0.5, color=[255,0,0] ,font=idlgrfont('courier',size=1000))
> ^
> % Syntax error.
>
> Do you know why?

You have IDL v7.x ?

In IDL v8, the capability to use the object name as the constructor function was introduced. So along with the usual

x = obj_new('myobject')

you can also do

x = myobject()
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: possible bug with center keyword option for FFT
Next Topic: reprojection

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

Current Time: Fri Oct 10 02:38:36 PDT 2025

Total time taken to generate the page: 1.20988 seconds