As an example, if the character string “10\%^50
%s70+0.5+” is
plotted, it will be displayed as “” - that is, with a
super-scripted exponent. The exponent text will be 70% of the size of
normal text (as determined by the Size attribute), and its baseline will
be raised by 50% of the height of a normal character.
Such escape sequences can be used in the strings assigned to textual attributes of the Plot (such as the axis Labels), and may also be included in strings plotted using astTextastText.
The Format attribute for the SkyAxisSkyAxis class includes the “g” option which will cause escape sequences to be included when formatting celestial positions so that super-script characters are used as delimiters for the various fields (a super-script “h” for hours, “m” for minutes, etc).
Note, the facility for interpreting escape sequences is only available if
the graphics wrapper functions which provide the interface to the
underlying graphics system support all the functions included in the
grf.h
file as of AST V3.2. Older grf interfaces may need to be
extended by the addition of new functions before escape sequences can be
interpretted.