Text vertical alignment [message #71843] |
Fri, 23 July 2010 06:56 |
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
|
|
|