topstr_size
Graphics, Widget
Return value
thisCharSize. This is the size the specified string should be set
to if you want to produce output of the specified target
width. The value is in standard character size units where
1.0 is the standard character size.
Parameters
string
in
required
targetwidth
in
optional
default: 0.25
Keywords
INITSIZE
default: 1.0
STEP
default: 0.05
Examples
To make the string "Happy Holidays" take up 30% of the width of
the current graphics window, type this:
IDL> XYOUTS, 0.5, 0.5, ALIGN=0.5, "Happy Holidays", $
CHARSIZE=STR_SIZE("Happy Holidays", 0.3)
Version history
Version
$Id: str_size.pro 372 2008-08-08 12:31:53Z pinsard $
History
Written by: David Fanning, 17 DEC 96.
Added a scaling factor to take into account the aspect ratio
of the window in determining the character size. 28 Oct 97. DWF
Statistics
McCabe cyclic | 11 |
McCabe essential | 1 |
McCabe modular design | 1 |