home *** CD-ROM | disk | FTP | other *** search
- /* This file illustrates some of the capabilities of the */
- /* text() command to annotate figures */
-
- #include <splot.h>
- main()
- {
- text(2,23,"The spacing between letters can be changed");
- set(FONTSPACE,0.5);
- text("to be further apart than usual");
- set(FONTSPACE,-0.2);
- text("or closer together.");
- set(FONTSPACE,0);
- text("The size and position of super/sub scripts can");
- text(2,17.38,"be varied as in");
- set(SCRIPTSHIFT,0.7);
- set(SCRIPTSCALE,0.5);
- text(8.94,17.38,"X_1_\b^2^,");
- set(SCRIPTSHIFT,1.0);
- set(SCRIPTSCALE,0.7);
- text(10.19,17.38,"X_1_\b^2^,");
- set(SCRIPTSHIFT,1.5);
- set(SCRIPTSCALE,1.0);
- text(11.4,17.38,"X_1_\b^2^.");
- text(2.10,15.81,"Note how the superscript was placed above");
- text("the subscript using the backspace char \\b.");
- text("Enter degree sign using '<ALT X> 127'");
- text("Use a \\ before special characters: \_\^\$\#\!\"");
- text("Symbols: $0 1 2 3 4 5 6 7 8 9 : ; < = > $");
-
- text(2,8,"The default text insertion point is LEFT");
- text(17,6,"but can be set to RIGHT",RIGHT);
- text(10,4,"Or CENTER",CENTER);
- }
-