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

Home » Public Forums » archive » Re: Orientation of IDLgrAxis Tick Labels
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
Re: Orientation of IDLgrAxis Tick Labels [message #37469] Mon, 29 December 2003 04:47
lesa.s.williams is currently offline  lesa.s.williams
Messages: 2
Registered: December 2003
Junior Member
Ben,

Thanks for your help; that solved the problem. Sometimes it's the
simple things that befuddle me the most! :)


Thanks again,
Lesa
Re: Orientation of IDLgrAxis Tick Labels [message #37474 is a reply to message #37469] Fri, 26 December 2003 06:07 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Lesa Williams wrote:
> I was wondering if anyone knows of a way to orient IDLgrAxis tick
> labels at a 45-degree angle. I've been playing with the TEXTBASELINE
> and TEXTUPDIR keywords, but I haven't been able to figure out how to
> change the direction of the text other than in the horizontal/vertical
> directions. By making TEXTBASELINE=[0,-1,0] and TEXTUPDIR=[1,0,0],
> I've been able to position the tick labels vertically, but I would
> like (if possible) to display them at an angle for easier reading.
> Any help would be appreciated!
>
Hello,

The baseline values maybe specified with floating point values, so you
are not confined to orthogonal directions. Below is a little routine
that will step through 10 different baseline angles.

Cheers,
Ben

*********BEGIN CODE
PRO RotateTextExample, text

if n_elements(text) EQ 0 then Text = 'Peace on Earth'

otext = OBJ_NEW('IDLgrText', text, baseline = [0.5,0.0,0.0])

model = OBJ_NEW('IDLgrModel')

model->Add, oText


xObjView, model, tlb = tlb

For i = 0,9 Do Begin
baseline = [1.0, 0.1, 0.0]*[1.0, i, 1.0]
oText->SetProperty, baseline = baseline
xObjView, model, refresh = tlb
Print, 'Baseline = ', baseline
Wait, 1
EndFor

Widget_Control, tlb, /destroy
Obj_Destroy, model
END;

*********END CODE
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Frame format for Digital Video?
Next Topic: Re: DXF Models

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

Current Time: Sat Oct 11 16:14:49 PDT 2025

Total time taken to generate the page: 0.64068 seconds