PGRAF(5)

NAME
pgraf3.out

DESCRIPTION

The file pgraf3.out contains metacode for generating graphics in conjunction with the pgraf system. It is created by user-called subroutines described in pgraf(3) and is interpreted by programs described in pgraf(1). The metacode consists of alphanumeric lines terminated by newlines. Lines are grouped into commands. The first line specifies the command, and is followed by zero or more lines of data. The commands and data formats are presented below. The data variable names are defined in pgraf(3), and are not repeated here. Data elements are separated by spaces, except for character strings, where an entire line is devoted to a single string. (Strings obviously cannot contain newlines.)

Metacode commands are given below in conjunction with the names and arguments of the associated metacode-generating subroutines.

    gpause()
         f

    gclear()
         i

    badset(value)
         x
        value

    window(nw,xlow,xhigh,ylow,yhigh)
         w
        nw xlow xhigh ylow yhigh 1

    windowno(nw,xlow,xhigh,ylow,yhigh)
         w
        nw xlow xhigh ylow yhigh 0

    axes(nw,sxl,sxh,ntx,xlabel,syl,syh,nty,ylabel)
         a
        nw sxl sxh syl syh ntx nty 1 1
        xlabel
        ylabel

    axesnox(nw,sxl,sxh,ntx,syl,syh,nty,ylabel)
         a
        nw sxl sxh syl syh ntx nty 0 1
        ylabel

    axesnoy(nw,sxl,sxh,ntx,xlabel,syl,syh,nty)
         a
        nw sxl sxh syl syh ntx nty 1 0
        xlabel

    axesnoxy(nw,sxl,sxh,ntx,syl,syh,nty)
         a
        nw sxl sxh syl syh ntx nty 0 0

    label(nw,x,y,text)
         b
        nw sx sy
        text

    line(nw,ltype,num,x,y)
         l
        nw ltype num
        x[0] y[0]
        etc.
        x[num - 1] y[num - 1]

    mark(nw,mtype,x,y,size)
         m
        nw mtype x y size

    conto(nw,nx,ny,dz,ltype,v)

    conto2(nw,nx,ny,dz,ltype,v,xloc,yloc)
         c
        nw nx ny dz ltype
        xloc[0]
        xloc[1]
        etc.
        yloc[0]
        yloc[1]
        etc.
        v[0][0]
        v[0][1]
        etc.
        v[nx - 1][ny - 1]

    fill(nw,nx,ny,dvl,dvh,ltype,v)

    fill2(nw,nx,ny,dvl,dvh,ltype,v,xloc,yloc)
         d
        nw nx ny dvl dvh ltype
        xloc[0]
        xloc[1]
        etc.
        yloc[0]
        yloc[1]
        etc.
        v[0][0]
        v[0][1]
        etc.
        v[nx - 1][ny - 1]

    grid(nw,nx,ny,jx,jy,v)

    grid2(nw,nx,ny,jx,jy,v,xloc,yloc)
         g
        nw nx ny jx jy
        xloc[1 + jx/2]
        xloc[1 + jx/2 + jx]
        etc.
        yloc[1 + jy/2]
        yloc[1 + jy/2 + jy]
        etc.
        v[1 + jx/2][1 + jy/2]
        v[1 + jx/2][1 + jy/2 + jy]
        v[1 + jx/2][1 + jy/2 + 2*jy]
        etc.

    vector(nw,nx,ny,sx,sy,vx,vy)

    vector2(nw,nx,ny,sx,sy,vx,vy,xloc,yloc)
         v
        nw nx ny sx sy
        xloc[0]
        etc.
        yloc[0]
        etc.
        vx[0][0] vy[0][0]
        vx[0][1] vy[0][1]
        etc.

    pview(nw,xp,yp,zp,xf,yf,zf,zoom)
         p
        nw xp yp zp xf yf zf zoom

    pline(nw,ltype,num,x,y,z)
         s
        nw ltype num
        x[0] y[0] z[0]
        etc.
        x[num - 1] y[num - 1] z[num - 1]

    plabel(nw,x,y,z,text)
         e
        nw x y z
        text

    paxes(nw,sxl,sxh,xst,xlabel,syl,syh,yst,ylabel,szl,szh,zst,zlabel)
         h
        nw sxl sxh xst syl syh yst szl szh zst
        xlabel
        ylabel
        zlabel

    psurface(nw,nx,ny,ltype,v,xvals,yvals)
         j
        nw nx ny ltype
        xvals[0]
        etc.
        xvals[nx - 1]
        yvals[0]
        etc.
        yvals[ny - 1]
        v[0][0]
        v[0][1]
        etc.
        v[nx - 1][ny - 1]

Note that pconto calls pline, while gopen, gclose, scale, vscale, and dcon don't generate any metacode. When fill, grid, conto, and vector are called, metacode for fill2, grid2, conto2, and vector2 is generated with evenly spaced values of xloc and yloc.

SEE ALSO

pgraf(1) - metacode interpreters
pgraf(3) - metacode generating routines