next up previous contents index
Next: GKSPACK Up: General Hints for Previous: Using GKS-3D libraries

Plotting numbers as text strings

For FORTRAN programmers it is possible to use the Internal Write construct to convert numeric variables to character strings for output as text primitives or via GMSG:

      REAL      rvar
      CHARACTER str*11
        ----
C     Set Variable
      rvar = v1 * v2 / v3
C     Convert to a character string
      WRITE(str, '(''RVAR= '',F5.1)') rvar
      CALL GMSG(wkid, str)
        ----

Janne Saarela
Mon Apr 3 17:00:12 METDST 1995