home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / splot122.zip / DEMO / TEXT2.SPT < prev    next >
Text File  |  1994-07-26  |  1KB  |  34 lines

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