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

Home » Public Forums » archive » tile of IDLgrAxis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
tile of IDLgrAxis [message #49495] Tue, 01 August 2006 23:36 Go to next message
Klemens Barfus is currently offline  Klemens Barfus
Messages: 45
Registered: December 2002
Member
Hello together,

is there an option for rotating the title of an y Axis of a
threedimensional object graphic by 180 degree around the z axis ?

Thanks for your help in advance !

Klemens
Re: tile of IDLgrAxis [message #49588 is a reply to message #49495] Wed, 02 August 2006 09:17 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Hi Klemens,

You could do this a couple of ways. One is to simply place an IDLgrText
object where you want without assigning it to your axis TITLE property.
The other is to modify your text object after you assign it to your
IDLgrAxis object (and you probably don't *have* to do it afterwards).
The second being a bit easier since properties relevant to the correct
placement and color are controlled by IDLgrAxis. But since we can only
assume what properties of the title object are modified by IDLgrAxis
this could have unexpected side effects.

Simply changing the BASELINE and UPDIR properties should do it for you:

yaxis = OBJ_NEW('IDLgrAxis', 1, RANGE=[0,10])
text = OBJ_NEW('IDLgrText', 'This is a test')
model = OBJ_NEW('IDLgrModel')
yaxis -> SetProperty, TITLE=text
text -> SetProperty, BASELINE=[-1,0,0], UPDIR=[0,-1,0]
model -> Add, yaxis
XOBJVIEW, model, /BLOCK
OBJ_DESTROY, [model, text]

-Rick




Klemens Barfus wrote:
> Hello together,
>
> is there an option for rotating the title of an y Axis of a
> threedimensional object graphic by 180 degree around the z axis ?
>
> Thanks for your help in advance !
>
> Klemens
Re: tile of IDLgrAxis [message #49638 is a reply to message #49588] Thu, 03 August 2006 22:48 Go to previous message
Klemens Barfus is currently offline  Klemens Barfus
Messages: 45
Registered: December 2002
Member
Hi Rick,

thanks for your help, this is exactly I was looking for !


Klemens

Rick Towler wrote:
> Hi Klemens,
>
> You could do this a couple of ways. One is to simply place an IDLgrText
> object where you want without assigning it to your axis TITLE property.
> The other is to modify your text object after you assign it to your
> IDLgrAxis object (and you probably don't *have* to do it afterwards).
> The second being a bit easier since properties relevant to the correct
> placement and color are controlled by IDLgrAxis. But since we can only
> assume what properties of the title object are modified by IDLgrAxis
> this could have unexpected side effects.
>
> Simply changing the BASELINE and UPDIR properties should do it for you:
>
> yaxis = OBJ_NEW('IDLgrAxis', 1, RANGE=[0,10])
> text = OBJ_NEW('IDLgrText', 'This is a test')
> model = OBJ_NEW('IDLgrModel')
> yaxis -> SetProperty, TITLE=text
> text -> SetProperty, BASELINE=[-1,0,0], UPDIR=[0,-1,0]
> model -> Add, yaxis
> XOBJVIEW, model, /BLOCK
> OBJ_DESTROY, [model, text]
>
> -Rick
>
>
>
>
> Klemens Barfus wrote:
>
>> Hello together,
>>
>> is there an option for rotating the title of an y Axis of a
>> threedimensional object graphic by 180 degree around the z axis ?
>>
>> Thanks for your help in advance !
>>
>> Klemens
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: routine in ENVI to pass from EVF to ROI????
Next Topic: Re: Length of command line input

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

Current Time: Sun Oct 12 10:39:44 PDT 2025

Total time taken to generate the page: 1.51812 seconds