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 #75084 is a reply to message #75014] Tue, 15 February 2011 12:12 Go to previous messageGo to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
On Feb 15, 11:57 am, fgg <fabioguimaraesgoncal...@gmail.com> 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?

This seems to work:

mysymbol=obj_new('idlgrtext','A',alignment=0.5,vertical_alig nment=0.5,color=[255,0,0],
font=obj_new('idlgrfont','courier',size=1000))
[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 04:51:50 PDT 2025

Total time taken to generate the page: 0.31970 seconds