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

Home » Public Forums » archive » Text vertical alignment
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Text vertical alignment [message #71843] Fri, 23 July 2010 06:56
JE is currently offline  JE
Messages: 1
Registered: July 2010
Junior Member
Hello

I'm trying to rotate some text using the updir and baseline settings
but nothing seems to be happening. I've tried plenty of different
perpendicular (and non-perpendicular) vectors but there doesn't seem
to be any change whatsoever in the orientation of the text., so I was
wondering if anyone here could spot the problem with it? The point is
to have a piece of text vertical along the side of a printed page with
an identifier number on. I tried doing it using an IDLgraxis and that
worked, but it put the index number closer to the plot than the proper
axis label (which I'm guessing is something to do with the order of
the code that generates the axes.
Here's the code where I create the graphics objects for the index
number. I've added some comments to make it a bit clearer:

oView = (*(self.plotviews))[0] ; the view object to add the text to

szIndex = ; code goes here which gets the index

szText = 'Index Number ' + string(szIndex)

self.oIndexNum = obj_new('IDLgrText', szText, font=self.legendfont,
updir=[-1,0], baseline=[0,1]) ; tried it using 3D vectors in all
combinations too, no luck

oModel = obj_new('IDLgrModel')
oView->add, oModel

oModel->add, self.oIndexNum ; tried these last 3 lines in various
orders too and there's no change either


Anyone else had a similar problem before?

Cheers,
James
[Message index]
 
Read Message
Previous Topic: Add a Vertical Line to a Plot
Next Topic: Fanning's LogScl routine + Colorbar??

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

Current Time: Wed Oct 08 16:09:28 PDT 2025

Total time taken to generate the page: 0.00440 seconds