[comp.archives] [xpert] Re: 3d plotting followup

ktoh@cy.berkeley.edu (Kenny Toh) (09/12/90)

Archive-name: pdraw/11-Sep-90
Original-posting-by: ktoh@cy.berkeley.edu (Kenny Toh)
Original-subject: Re: 3d plotting followup
Archive-site: scam.berkeley.edu [128.32.138.1]
Archive-directory: /src/local
Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti)

In article <27608@pasteur.Berkeley.EDU> ktoh@cy.berkeley.edu.UUCP (Kenny Toh) writes:
>Hi there folks, I was just catching up on my reading in this newsgroup
>and lo, I found this comment about a need for X11 3D plotting.
>Well, it just happen that I have do have a program which does 3D
>plots.  A brief description follows :
>
>NAME
>     pdraw - 3D plot program for X-windows and Postscript
>

Here's another update on the plotting programs.  These programs have been 
installed on the ftp account on scam.berkeley.edu (/src/local),
under the following names :

       3dplot.tar.Z
       contour.tar.Z
       drawplot.tar.Z

To get to these files, use the anonymous ftp.
A brief description of the programs follows :

       pdraw - 3D plot program for X-windows and Postscript
       contour - contour plot program for X-windows, HP2648s and Postscript
       drawplot - plot program for Sunview, X-windows, HP2648s and Postscript

To unpack : 

   (A) Type "uncompress [name].tar.Z"

   (B) Type "tar -xvf [name].tar"

   (C) Now go into the directory (3DPlot, Contour, Drawplot) and figure out
       how to compile.

Have fun with the code, please tell me of any modifications you might 
make (so that I can incorporate the changes into the code), and 
e-mail me if you have trouble.  Thanks for the interest.

Kenny Toh
(ktoh@mascot.berkeley.edu)
(I'm really not a computer-graphics engineer, really!)

P.S.  I will be submitting this to comp.sources.x sometime in the future,
      as soon as I can decipher the submission instructions.

P.S.S. Note : The programs listed here will do plots on different machines,
       according to the terminal type.  For example, contour will draw 
       hp2648 plots if it thinks it's on a 2648 terminal.  I test for this
       by checking the TERM environment variable.  So what does this mean?
       If you're trying to plot on an xterm which your machine calls
       'hpterm', then you'll have to reset your termtype to 'xterm'.
       If you don't do this, then the program will go directly to the
       postscript plotting routines, and you won't get a plot on your X
       screen.

gjc@mitech.com (09/16/90)

Archive-name: plplot/05-Sep-90
Original-posting-by: gjc@mitech.com
Original-subject: Re: 3d plotting followup
Archive-site: abcfd01.larc.nasa.gov [128.155.23.23]
Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti)

There is a package called PLPLOT, available from AMIGA source and binary
archives (comp.sources.amiga, comp.binaries.amiga). It was based on
on Tim Pearsons VAX/Fortran-77 package PGPLOT (from Caltech?) which sees
quite a bit of use for scientific plotting. It was very easy to get
this running on non-AMIGA machines.

I wrote XLIB and POSTSCRIPT level drivers for this,
and use it as a sharable library to call from programs.
Technically, in terms of plotting technique and
capability it is superior to gnuplot, and xgraph-11. It has
2d, 3d, and contour plotting capability.
For an interactive interface I've used the SIOD scheme interpreter.

If somebody would help me with the XMAKEFILE and other considerations
it would could make a worthy X contributed package.

Since it is program callable and encapsulates its state in a few
data structures it isn't too far away from being widget-worthy either.
(I have a list of all internal state variables because of the sharable
library considerations).

-gjc

ktoh@cy.berkeley.edu (Kenny Toh) (09/16/90)

Archive-name: pdraw/09-Sep-90
Original-posting-by: ktoh@cy.berkeley.edu (Kenny Toh)
Original-subject: Re: 3d plotting followup
Archive-site: ktoh@mascot.berkeley.edu
Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti)

Hi there folks, I was just catching up on my reading in this newsgroup
and lo, I found this comment about a need for X11 3D plotting.
Well, it just happen that I have do have a program which does 3D
plots.  A brief description follows :

NAME
     pdraw - 3D plot program for X-windows and Postscript

SYNOPSIS
     pdraw [-v vx vy vz] [-o options-file] [-Pprinter] [-s scale]
     [-e] [-h] [-nosort] [-ps] plotfile1 plotfile2...

DESCRIPTIONS
     Pdraw is a program for drawing 3D plots on X10 or  X11  win-
     dows.  The program will also produce a POSTSCRIPT plot which
     can be dumped out to an APPLE Laserwriter.  Pdraw  reads  in
     x-y-z  data  from  a  plot-file  and  manipulates  that data
     according to options specified either in the command-line or
     in  a  options-file.   The  plot-file can be compressed (see
     compress[1]); compressed files will be uncompressed automat-
     ically.   The  program then plots lines on a screen or dumps
     the plots to a POSTSCRIPT file.

etc
etc

If there's any interest, send e-mail to me and I'll send you the source 
code.  I even have separate programs for 2D contour plots and 2D plots
(similar to Xgraph).  Anyone out there interested?

Kenny Toh
ktoh@mascot.berkeley.edu
(Dammit Jim, I'm a doctor not a graphics engineer!)