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

Home » Public Forums » archive » Re: evenly spaced text in xyouts
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: evenly spaced text in xyouts [message #67783] Mon, 31 August 2009 12:52
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Mark Quigley wrote:
> I find myself stumped by this problem, but perhaps someone who
> actually understands fonts might help me out?
>
> I'm doing the following:
>
> xyouts,.5, .5, 'abc def'
> xyouts,.5, .4, 'hij klm'
> xyouts,.5, .3,'123 456'
>
>
> I'd like the output to the plot to line up nicely. However, no matter
> what font perversion I use the characters have different widths, so
> the columns dont line up.
>
> Is there some reasonably simple way to line up the columns (ie, a font
> I haven't discovered where the characters are all forced to have the
> same width?)

You mean like this?

IDL> device, set_font='Courier', /tt_font
IDL> xyouts,.5, .5, 'abc def', /normal, font=1, charsize=2
IDL> xyouts,.5, .4, 'hij klm', /normal, font=1, charsize=2
IDL> xyouts,.5, .3,'123 456', /normal, font=1, charsize=2

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
[Message index]
 
Read Message
Previous Topic: evenly spaced text in xyouts
Next Topic: Re: Automatically Register GeoTIFF Images

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

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

Total time taken to generate the page: 0.00399 seconds