Newsgroups: comp.sources.misc From: jsp@Princeton.EDU (James Plank) Subject: v32i090: jgraph - A filter for plotting postscript graphs v8.0, Patch02 Message-ID: <1992Sep21.205654.6957@sparky.imd.sterling.com> X-Md4-Signature: 6280599e74cabb2d80a2f1a5f5a1612b Date: Mon, 21 Sep 1992 20:56:54 GMT Approved: kent@sparky.imd.sterling.com

Submitted-by: jsp@Princeton.EDU (James Plank) Posting-number: Volume 32, Issue 90 Archive-name: jgraph/patch02 Environment: UNIX, VMS, postscript Patch-To: jgraph: Volume 31, Issue 31-37

Jgraph patch 8.2: Mon Sep 21 10:56:27 EDT 1992

Another patch to jgraph:

- The bounding box was changed from floats to ints so that it could be compatible with more packages.

- Added the tokens 'pattern', 'ppattern' and 'apattern', so that whenever you're able to fill something (e.g. a mark) you can specify a pattern – currently the only patterns are 'solid' and 'stripe', but the addition of stripes should greatly benefit those who use jgraph for bar graphs. See the man page under 'pattern'.

- I finally gave in and put filenames on the command line. If you omit the filename, it will read in from standard input as before.

- Added a marktype 'eps' so you can include encapsulated postscript files as marks. I've been using it to include jgraph files in other jgraph files. In theory it should work with all encapsulated postsctript files, but I haven't tested that.

As always, version 8.2 is available via anonymous ftp to princeton.edu in the file pub/jgraph.Z. It's a compressed shar file. Remember to set ftp to binary before getting the file.

Or, you can get jgraph from netlib:

echo "send jgraph.shar from jgraph" | mail netlib@ornl.gov

Let me know if there are any problems.

Take it easy,

Jim jsp@princeton.edu

Patch from v8.1:

*** ../work/NeXT.help Mon Sep 21 10:52:12 1992 — NeXT.help Mon Sep 21 10:42:47 1992 *************** *** 1,6 **** To compile jgraph on the NeXT machines, compile with -DLCC. This will ! define LCC in jgraph.h so that <stdlib.h> will be included. Otherwise, ! the compilation will go fine, but there will be type conversion errors ! in token.c which will give bogus output.

Jim — 1,6 —- To compile jgraph on the NeXT machines, compile with -DLCC. This will ! define LCC in jgraph.h and token.c so that <stdlib.h> will be included. ! Otherwise, the compilation will go fine, but there will be type conversion ! errors in token.c which will give bogus output.

Jim *** ../work/README Mon Sep 21 10:52:12 1992 — README Mon Sep 21 10:42:47 1992 *************** *** 1,4 **** ! Revision : 8.1

Jgraph takes the description of a graph or graphs in the standard input, and produces a postscript file on the standard output. Jgraph — 1,4 —- ! Revision : 8.2

Jgraph takes the description of a graph or graphs in the standard input, and produces a postscript file on the standard output. Jgraph *** ../work/acc.jgr Mon Sep 21 10:52:13 1992 — acc.jgr Mon Sep 21 10:42:55 1992 *************** *** 25,37 ****

newcurve label : GE ! marktype xbar fill .3 marksize .4 pts ! 3 7.9602 (* 518.2473 Kb/sec *)

newcurve label : RNG ! marktype xbar fill 0 marksize .4 pts 4 8.2876 (* 539.5619 Kb/sec *)

— 25,37 —-

newcurve label : GE ! marktype xbar fill .3 pattern stripe 40 marksize .4 pts ! 3 27.9602 (* 518.2473 Kb/sec *)

newcurve label : RNG ! marktype xbar fill 0 pattern stripe marksize .4 pts 4 8.2876 (* 539.5619 Kb/sec *)

*** ../work/acc.tex Mon Sep 21 10:52:13 1992 — acc.tex Mon Sep 21 10:42:59 1992 *************** *** 8,14 **** A sample bar graph

\begin{figure}! \centerline{\psfig{figure=acc.jps}}
\end{figure}