diff options
| author | rsc <devnull@localhost> | 2004-04-14 19:54:10 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-04-14 19:54:10 +0000 |
| commit | 4314729ddef28cb619ce97d50f0968ca24c93803 (patch) | |
| tree | 3abd7849a10e842a57b1fd535f8278d22a6bf132 /src/cmd/plot/libplot/openpl.c | |
| parent | 6e18e03e63942f7b0912bb91d0da02fd493af0af (diff) | |
Add graph, plot
Diffstat (limited to 'src/cmd/plot/libplot/openpl.c')
| -rw-r--r-- | src/cmd/plot/libplot/openpl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/plot/libplot/openpl.c b/src/cmd/plot/libplot/openpl.c new file mode 100644 index 00000000..6972f956 --- /dev/null +++ b/src/cmd/plot/libplot/openpl.c @@ -0,0 +1,12 @@ +#include "mplot.h" +void openpl(char *s){ + m_initialize(s); + e0->left=mapminx; + e0->bottom=mapmaxy; + e0->sidex=mapmaxx-mapminx; + e0->sidey=mapminy-mapmaxy; + e0->scalex=e0->sidex; + e0->scaley=e0->sidey; + sscpy(e0, e1); + move(0., 0.); +} |