Artifact a0c2f9e47197783753c639e751febacf4487d73414a5b51c46972003df67c50d:
- File
r34.1/plot/term/unixplot.trm
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 2021) [annotate] [blame] [check-ins using] [more...]
/* * $Id: unixplot.trm,v 3.26 92/03/24 22:35:47 woo Exp Locker: woo $ */ /* GNUPLOT -- unixplot.trm */ /* * Copyright (C) 1990, 1991, 1992 * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. * * Permission to modify the software is granted, but not the right to * distribute the modified code. Modifications are to be distributed * as patches to released version. * * This software is provided "as is" without express or implied warranty. * * This file is included by ../term.c. * * This terminal driver supports: * Unix plot(5) graphics language * * AUTHORS * Colin Kelley, Thomas Williams, Russell Lang * * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov). * */ /* Unixplot library writes to stdout. A fix was put in place by ..!arizona!naucse!jdc to let set term and set output redirect stdout. All other terminals write to outfile. */ #define UP_XMAX 4096 #define UP_YMAX 4096 #define UP_XLAST (UP_XMAX - 1) #define UP_YLAST (UP_YMAX - 1) #define UP_VCHAR (UP_YMAX/30) /* just a guess--no way to know this! */ #define UP_HCHAR (UP_XMAX/60) /* just a guess--no way to know this! */ #define UP_VTIC (UP_YMAX/80) #define UP_HTIC (UP_XMAX/80) UP_init() { openpl(); space(0, 0, UP_XMAX, UP_YMAX); } UP_graphics() { erase(); } UP_text() { } UP_linetype(linetype) int linetype; { static char *lt[2+5] = {"solid", "longdashed", "solid", "dotted","shortdashed", "dotdashed", "longdashed"}; if (linetype >= 5) linetype %= 5; linemod(lt[linetype+2]); } UP_move(x,y) unsigned int x,y; { move(x,y); } UP_vector(x,y) unsigned int x,y; { cont(x,y); } UP_put_text(x,y,str) unsigned int x,y; char str[]; { UP_move(x+UP_HCHAR/2,y+UP_VCHAR/5); label(str); } UP_reset() { closepl(); }