Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Text

Usage

Text[expr, coords] is a graphics primitive that represents text corresponding to the printed form of expr, centered at the point specified by coords.


Notes

• The text is printed by default in OutputForm.
Text can be used in both two- and three-dimensional graphics.
• The coordinates can be specified either as {x, y, ... } or as Scaled[{x, y, ... }].
• In two dimensions, coordinates can also be specified using Offset.
Text[expr, coords, offset] specifies an offset for the block of text relative to the coordinates given. Giving an offset {sdx, sdy} specifies that the point {x, y} should lie at relative coordinates {sdx, sdy} within the bounding rectangle that encloses the text. Each relative coordinate runs from -1 to +1 across the bounding rectangle.
• The offsets specified need not be in the range  to  .
• Here are sample offsets to use in two-dimensional graphics:
{0, 0} text centered at {x, y}
{-1, 0} left-hand end at {x, y}
{1, 0} right-hand end at {x, y}
{0, -1} centered above {x, y}
{0, 1} centered below {x, y}
Text[expr, coords, offset, dir] specifies the orientation of the text is given by the direction vector dir. Possible values of dir are:
{1, 0} ordinary horizontal text
{0, 1} vertical text reading from bottom to top
{0, -1} vertical text reading from top to bottom
{-1, 0} horizontal upside-down text
• Text in three-dimensional graphics is placed at a position that corresponds to the projection of the point {x, y, z} specified. Text is drawn in front of all other objects.
• The font or style for text can be specified using StyleForm or using the TextStyle option. If no such specifications are given, the font is determined from the setting for TextStyle for the whole plot, which is in turn by default given by the global variable $TextStyle.
• You can specify the color of text using CMYKColor, GrayLevel, Hue and RGBColor directives.
• The option CharacterEncoding for Display can be used to specify what raw character encoding to use for character strings in Text objects.
• The following options can be given:
Background None background color
FormatType StandardForm format type
TextStyle Automatic style specification
• See also: PlotLabel, AxesLabel, Cell.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: