diff options
Diffstat (limited to 'grapheps.txi')
-rwxr-xr-x[-rw-r--r--] | grapheps.txi | 68 |
1 files changed, 58 insertions, 10 deletions
diff --git a/grapheps.txi b/grapheps.txi index a889dd0..6e975ec 100644..100755 --- a/grapheps.txi +++ b/grapheps.txi @@ -3,7 +3,7 @@ @noindent This is a graphing package creating encapsulated-PostScript files. Its motivations and design choice are described in -@url{http://swiss.csail.mit.edu/~jaffer/Docupage/grapheps} +@url{http://people.csail.mit.edu/jaffer/Docupage/grapheps} @noindent A dataset to be plotted is taken from a 2-dimensional array. @@ -154,6 +154,34 @@ Five sided polygon Hollow circle @end table + +@defun plot-text-column array x-column y-column t-column proc3s + +Plots text in @var{t-column} of @var{array} at x coordinate in @var{x-column} of @var{array} and y coordinate +@var{y-column} of @var{array}. The symbol @var{proc3s} specifies the offset of the text from the +specified coordinates. +@end defun + +@noindent +The offsets available are: + +@table @code +@item above +Draws the text centered above at the point. +@item center +Draws the text centered at the point. +@item below +Draws the text centered below the point. +@item left +Draws the text to the left of the point. +@item right +Draws the text to the right of the point. +@end table + +All the offsets other than @code{center} are calculated to keep the +text clear of a glyph drawn at the same coordinates. If you need +more or less clearance, use @code{set-glyphsize}. + @node Graphics Context, Rectangles, Drawing the Graph, PostScript Graphing @subsubsection Graphics Context @@ -175,13 +203,19 @@ grey value between black (0) and white (100). @end defun -@defun set-font name fontheight +@defun set-font font height + -@var{name} should be a (case-sensitive) string naming a PostScript font. -@var{fontheight} should be a positive real number. +@defunx set-font font encoding height +@var{font} should be a (case-sensitive) string naming a PostScript font. +@var{height} should be a positive real number. +@var{encoding} should name a PostScript encoding such as +@samp{ISOLatin1Encoding}. -@code{set-font} Changes the current PostScript font to @var{name} with height equal to -@var{fontheight}. The default font is Helvetica (12pt). +@code{set-font} Changes the current PostScript font to @var{font} with the @var{encoding} +encoding, and height equal to @var{height}. The default font is +@samp{Helvetica} (12pt). The default encoding is +@samp{StandardEncoding}. @end defun @noindent @@ -195,6 +229,14 @@ The base set of PostScript fonts is: @end multitable @noindent +The base set of PostScript encodings is: + +@multitable @columnfractions .33 .33 .33 +@item StandardEncoding @tab ISOLatin1Encoding @tab ExpertEncoding +@item ExpertSubsetEncoding @tab SymbolEncoding +@end multitable + +@noindent Line parameters do no affect fonts; they do effect glyphs. @@ -210,10 +252,12 @@ glyphsize for readable glyphs. Lines are drawn @var{j}-on @var{k}-off. -@defunx set-linedash j +@end defun +@defun set-linedash j Lines are drawn @var{j}-on @var{j}-off. -@defunx set-linedash +@end defun +@defun set-linedash Turns off dashing. @end defun @@ -391,12 +435,16 @@ encapsulated PostScript graph of the function of one argument @var{func} over the range @var{x1} to @var{x2}. If the optional integer argument @var{npts} is supplied, it specifies the number of points to evaluate @var{func} at. -@defunx x1 x2 npts func1 func2 ... + +@end defun +@defun plot x1 x2 npts func1 func2 @dots{} Creates and displays an encapsulated PostScript graph of the one-argument functions @var{func1}, @var{func2}, ... over the range @var{x1} to @var{x2} at @var{npts} points. -@defunx plot coords x-label y-label + +@end defun +@defun plot coords x-label y-label @var{coords} is a list or vector of coordinates, lists of x and y coordinates. @var{x-label} and @var{y-label} are strings with which to label the x and y axes. |