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

Home » Public Forums » archive » Re: embedded formatting hell: x-bar meaning "mean of x"
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: embedded formatting hell: x-bar meaning "mean of x" [message #54042] Thu, 17 May 2007 16:05
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
> erase
> xyouts,.5,.5,/FONT,/NORMAL, $
> string(42,FORMAT='("!sx!r!U!M!Z(be)!x!n= ",I0," is the mean")'),CHARSIZE=3

Thanks, that is pretty good. I expect I will probably head straight to
this thread next time I need this, rather than trying to find it in my
own code!

--Edward H.
Re: embedded formatting hell: x-bar meaning "mean of x" [message #54048 is a reply to message #54042] Thu, 17 May 2007 12:23 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Thu, 17 May 2007 11:05:40 -0700, Ed Hyer wrote:

> ideally, something I can use in STRING() to then deliver as input to
> XYOUTS.
>
> This comes close:
>
> meanstring=STRING(mean,$
> format='("!sx!r!u-!n= ",i," is the mean")')
>
> I think it would be correct, if I could just get an em-dash instead of
> an en-dash.
>
> Unicode should be my friend here, but I can't get syntax:
>
> format='("!sx!r!u!Z('2014'x)!n= ",i," is the mean")')

No need for the ''x format, it understands the input as hexadecimal.

Best I could do:

erase
xyouts,.5,.5,/FONT,/NORMAL,$
string(42,FORMAT='("!Sx!R!A!Z(2013)!n=",I0," is the mean")'),CHARSIZE=3

The symbol font also has a nice long dash down low (still easier for
me to use the Z() notation for these). It's a little better centered:

erase
xyouts,.5,.5,/FONT,/NORMAL, $
string(42,FORMAT='("!sx!r!U!M!Z(be)!x!n= ",I0," is the mean")'),CHARSIZE=3

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: position matching
Next Topic: min_curve_surf

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

Current Time: Sat Oct 11 02:26:24 PDT 2025

Total time taken to generate the page: 0.87403 seconds