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

Home » Public Forums » archive » Re: idl8 window size and arrow
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: idl8 window size and arrow [message #84733 is a reply to message #84530] Wed, 22 May 2013 20:28 Go to previous message
laoli is currently offline  laoli
Messages: 5
Registered: May 2013
Junior Member
On Tuesday, May 21, 2013 2:29:27 AM UTC+10, Mike Galloy wrote:
> On 5/20/13 10:28 AM, Michael Galloy wrote:
>
>> On 5/20/13 1:06 AM, laoli wrote:
>
>>> w = WINDOW(WINDOW_TITLE="My Window", DIMENSIONS=[500,100])
>
>>> t = TEXT(50, 220, "$\it Draw arrow here$", /DEVICE)
>
>>> arrow, 50, 100,200, 100
>
>>
>
>> The ARROW procedure is a direct graphics routine. The way to draw an
>
>> arrow in the Function Graphics system is to use the ARROW function:
>
>>
>
>> ar = arrow([50, 200], [50, 50], /device, head_size=3.)
>
>>
>
>> Mike
>
>
>
> Also, the window is 500 by 100 on my system:
>
>
>
> IDL> print, !version
>
> { x86_64 darwin unix Mac OS X 8.2.2 Jan 23 2013 64 64}
>
>
>
> Mike
>
> --
>
> Michael Galloy
>
> www.michaelgalloy.com
>
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
> Research Mathematician
>
> Tech-X Corporation

Many thanks Mike. Your explanation about different graphics is greatly helpful.

1) I added your line of code
ar = arrow([50, 200], [50, 50], /device, head_size=3.)
to my test script.

1a), the word "arrow" does not change color as other function names do.

1b), when running it, an error message appeared:
Unable to invoke method on NULL object reference: <OBJREF (<NullObject>)>.

1c), when commented out your line of code, and used the Annotate tools provided at the bottom of the graphic window, all other tools (such as Text, Oval) worked fine, but the Arrow tool caused an error message:
Unable to locate target descriptor: MANIPULATORS/ANNOTATION/ARROW

2) The window size is a problem on my machine:
{ x86_64 Win32 Windows Microsoft Windows 8.0.1 Oct 5 2010 64 64}

Is there
Regards
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: minimization method(amoeba subroutine)
Next Topic: True-Type Font Confusion

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

Current Time: Wed Oct 08 13:33:49 PDT 2025

Total time taken to generate the page: 0.00364 seconds