comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Vertical text orientation?
items: Re: Vertical text orientation?

Vertical text orientation?
type: item
description: 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
creator: rjp23
date: 2015-06-03T09:42:59-00:00

Re: Vertical text orientation?
type: item
description: 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
creator: Helder Marchetto
date: 2015-06-03T10:01:39-00:00

Re: Vertical text orientation?
type: item
description: I cannot remember how I did this exactly, but some PS fonts give out vertical text as a by-product. It's a little sad if you want to use a specific font, but I have done this many times with may Y axis title when I didn't wish to. I remember being startled by 'Declination' being stood up the first time it happened. I think the above approach is best in a generalised manner and just enclose it within its own procedure. David
creator: David B
date: 2015-06-03T10:17:49-00:00

Re: Vertical text orientation?
type: item
description: On Wednesday, June 3, 2015 at 5:43:01 AM UTC-4, 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 Try using the '!C' embedded graphics code. 'THIS' ;; becomes 'T!C' + 'H!C' + 'I!C' + 'S!C' It's an exercise for the reader to make an IDL procedure which does this automatically... :-) Craig
creator: Craig Markwardt
date: 2015-06-03T12:55:18-00:00

Re: Vertical text orientation?
type: item
description: On Wednesday, June 3, 2015 at 3:13:01 PM UTC+5:30, 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 use XYOUTS with ORIENTATION keyword. ORIENTATION keyword will rotate the string with given angle (in degrees). str='LIKE THIS' xyouts,10,10,str,orientation=270 Regards, Vaibhav Pant
creator: vaibhavpant55
date: 2015-06-05T05:20:33-00:00