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

Home » Public Forums » archive » Vertical text orientation?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Vertical text orientation? [message #91089 is a reply to message #91086] Wed, 03 June 2015 03:01 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, June 3, 2015 at 11:43:01 AM UTC+2, rj...@le.ac.uk wrote:
> This one's driving me mad :-(
>
> I'm sure I've done it before but I can't remember how to.
>
> I want to put some text on a plot that runs vertically down the page.
>
> I don't want to just rotate the text, I want all the characters to still be "upright" but one beneath the other.
>
> L
> I
> K
> E
>
> T
> H
> I
> S
>
> (hopefully the above formatting is kept)
>
> Anyone any ideas better than printing each individual character?
>
> Cheers
>
> Rob

Since you didn't say in which type of graphic enviroment you wanted this, I give you what I *can* do:

likeThis = byte('LIKE THIS')
nChars = n_elements(likeThis)
likeThisArray = strarr(nChars)
for i=0,nChars-1 do likeThisArray[i] = string(likeThis[i])
i = image(/test)
t = text(0.5,0.5,likeThisArray,color='red')

But I guess you wanted direct graphics...

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to supress output from going to new line
Next Topic: help with cgDrawVectors in write_gif procedure

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

Current Time: Thu Oct 09 14:13:36 PDT 2025

Total time taken to generate the page: 0.71929 seconds