Method poin
| Improve this Doc View Sourcepoin(Double[], Double[], Char)
plpoin: Plot a glyph at the specified points
Declaration
public static void poin(Double[] x, Double[] y, char code)
Parameters
Type | Name | Description |
---|---|---|
Double[] | x | A vector containing the x coordinates of points. |
Double[] | y | A vector containing the y coordinates of points. |
System.Char | code | Hershey symbol code (in "ascii-indexed" form with -1 lt= code lt= 127) corresponding to a glyph to be plotted at each of the n points. |
Remarks
Plot a glyph at the specified points. (This function is largely superseded by plstring which gives access to many[!] more glyphs.) code=-1 means try to just draw a point. Right now it's just a move and a draw at the same place. Not ideal, since a sufficiently intelligent output device may optimize it away, or there may be faster ways of doing it. This is OK for now, though, and offers a 4X speedup over drawing a Hershey font "point" (which is actually diamond shaped and therefore takes 4 strokes to draw). If 0 lt code lt 32, then a useful (but small subset) of Hershey symbols is plotted. If 32 lt= code lt= 127 the corresponding printable ASCII character is plotted.