GPLOT recipes: Hershey symbols


Hershey symbols are special symbols which can be included in text or can be used as graph markers. The total number of different symbols available is about 1000. Each symbol is composed of a set of vectors, based on digitized type fonts devised by A. V. Hershey of the US Naval Postgraduate School, and each symbol is assigned a number in the range 0--4000. Any character can be inserted in a text string using an escape sequence of the form \(nnnn), where nnnn is the Hershey number.

GPLOT Example 1: Plot a text string with integral sign and 'theta' & 'pi' symbol.

move 0 0
charhei 2
text  \(2412) f(\(2185))d\(2185) = \(2142)

All GIPSY applications which accept text in a plot use the same syntax \(nnnn) for a Hershey symbol number. You can also use the Hershey symbols as graph markers, but then you cannot use the Hershey symbols with numbers < 128 (these numbers are reserved for ASCII characters).

GPLOT Example 2: Plot a copyright marker at position 0 0.

move 0 0 
symbol 274
marker
GPLOT Example 3: Include a copyright character in a text

move 0 0 
text Gipsy, \(0274) 1995

All available Hershey symbols are plotted in:

  1. Hershey symbols 1.
  2. Hershey symbols 2.
  3. Hershey symbols 3.
  4. Hershey symbols 4.
  5. Hershey symbols 5.
  6. Hershey symbols 6.
  7. Hershey symbols 7.
  8. Hershey symbols 8.
  9. Hershey symbols 9.
  10. Hershey symbols 10.
  11. Hershey symbols 11.
  12. Hershey symbols 12.
  13. Hershey symbols 13.

GIPSY