Re: Questions about IDL 8.0 [message #73725 is a reply to message #73723] |
Wed, 24 November 2010 10:30   |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
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
|
|
|