Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ plot(3X) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

plot(1)

plot(4)

plot(3X)  —  MISCELLANEOUS LIBRARY FUNCTIONS

NAME

plot: openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl − graphics interface

SYNOPSIS

void openpl(void);

void erase(void);

void label(const char ∗s);

void line(int x1, int y1, int x2, int y2);

void circle(int x, int y, int r);

void arc(int x, int y, int x0, int y0, int x1, int y1);

void move(int x, int y);

void cont(int x, int y);

void point(int x, int y);

void linemod(const char ∗s);

void space(int x0, int y0, int x1, int y1);

void closepl(void);

DESCRIPTION

These subroutines generate graphic output in a relatively device-independent manner.  See the plot(4) manual page for a description of their effect. openpl must be used before any of the others to open the device for writing.  closepl flushes the output. 

String arguments to label and linemod are null-terminated and do not contain newlines. 

Various flavors of these functions exist for different output devices.  They are obtained by the following ld options:

−lplot device-independent graphics stream on standard output for plot filters

−l300 GSI 300 terminal

−l300s GSI 300S terminal

−l450 GSI 450 terminal

−l4014 Tektronix 4014 and 4015 terminals with the Enhanced Graphics Module (Use −l4013 for 4014’s or 4015’s without the Enhanced Graphics Module)

−lvt0 DEC vt100 terminals

On many devices, it is necessary to pause after erase(); otherwise, plotting commands are lost.  The pause is normally done by the tty driver if at login time, tset found a df field in the termcap entry for the terminal.  If a pause is needed but not automatically being generated, add

flush(stdout);
sleep(1);

after each erase(). 

SEE ALSO

plot(1), plot(4)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026