The figure below illustrates the relative positions and effects on character size of the level commands. In this figure, the letters "!N" are normal level and size characters.
The positioning shown was created with the following command:
XYOUTS, 0.1, 0.3, $ '!LLower!S!EExponent!R!IIndex!N Normal!S!EExp!R!IInd!N!S!U Up!R!D Down!N!S!A Above!R!B Below'
Note that the string argument to the XYOUTS procedure must be entered on a single line rather than the two lines shown above.
Embedded positioning commands and the vector font system can be used to create the integral shown below:
The command string used to produce the integral is:
XYOUTS, 0, .2, $ '!MI!S!A!E!8x!R!B!Ip!N !7q!Ii!N!8U!S!E2!R!Ii!Ndx', $ SIZE = 3, /NORMAL
Remember that the case of the letter in an embedded command is not important. The string may be broken down into the following components:
Changes to the math set and draws the integral sign, uppercase I.
Saves the current position on the position stack.
Shifts above the division line and to the exponent level, switches to the Complex Italic font (Font 8), and draws the " x."
Restores the position to the position immediately after the integral sign, shifts below the division line to the index level, and draws the " p."
Returns to the normal level, advances one space, shifts to the Complex Greek font (Font 7), and draws the Greek letter rho, which is designated by "q" in this set.
Shifts to the index level and draws the " i " at the index level. Returns to the normal level.
Shifts to the Complex Italic font (Font 8) and outputs the upper case " U."
Saves the position and draws the exponent " 2."
Restores the position and draws the index " i."
Returns to the normal level and outputs " dx."
| Note |
IDL uses vector-drawn font when the value of the system variable
PLOT, X, XTITLE = '!6X Axis Title'
This font remains in effect until explicitly changed. The order in which the annotations are drawn is main title, x-axis numbers, x-axis title, y-axis numbers, and y-axis title. Strings to be output also may contain embedded information selecting subscripting, superscripting, plus other features that facilitate equation formatting.
The following statements were used to produce the figure below. They serve as an example of a plot using vector-drawn characters and of equation formatting.
; Define an array: X = FLTARR(128) ; Make a step function: X[30:40] = 1.0 ; Take FFT and magnitude: X = ABS(FFT(X, 1)) ; Produce a log-linear plot. Use the Triplex Roman font for the ; x title (!17), Duplex Roman for the y title (!5), and Triplex ; Italic for the main title (!18). The position keyword is used to ; shrink the plotting window: PLOT, X[0:64], /YLOG, XTITLE = '!17Frequency', $ YTITLE = '!5Power', $ TITLE = '!18Example of Vector Drawn Plot', $ POSITION = [.2, .2, .9, .6] SS = '!6F(s) = (2!4p)!e-1/2!n !mi!s!a!e!m $ !r!b!i ' + '-!m $ ; String to produce equation: !nF(x)e !e-i2!4p!3xs!ndx' XYOUTS, 0.1, .75, SS, SIZE = 3, $ ; Output string over plot. The NOCLIP keyword is needed because ; the previous plot caused the clipping region to shrink: /NORMAL, /NOCLIP