Re: Questions about IDL 8.0 [message #73723 is a reply to message #73722] |
Wed, 24 November 2010 12:00   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 11/24/10 11:30 AM, Paulo Penteado wrote:
> On Nov 24, 4:02 pm, Michael Galloy<mgal...@gmail.com> wrote:
>> What are the allowable names? I see 'xaxis', 'yaxis', and 'zaxis', but
>> are there clever names for the other axes like when AXIS_STYLE=2? And
>> what exactly is that name, part of an identifier?
>
> The overloaded brackets match objects in the hierarchy through calls
> of igetid(), with some processing before and after it. So it is mostly
> up to igetid's way of finding identifiers.
>
> The matches are not necessarily of single objects:
>
> IDL> s=surface(/test,axis_style=2)
> IDL> help,s['*axis*']
> <Expression> OBJREF = Array[12]
> IDL> foreach el,s['zaxis'] do print,el.name
> Axis 2
> IDL> foreach el,s['zaxis*'] do print,el.name
> Axis 2
> Axis 5
> Axis 8
> Axis 11
But I don't see where 'zaxis' appears at all:
IDL> foreach el,s['zaxis*'] do print, el.identifier
AXIS2
AXIS5
AXIS8
AXIS11
It seems like it is doing something smart, but I'm not sure exactly what
it is. For example, 'zaxis*' matches all the axes pointing in the z
direction:
IDL> foreach el, s['zaxis*'] do el.hide = 1
Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
|
|
|