Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!agate!pasteur!cy.berkeley.edu!ktoh From: ktoh@cy.berkeley.edu (Kenny Toh) Newsgroups: comp.windows.x Subject: Re: 3d plotting followup Keywords: 3D Plotting program Message-ID: <27705@pasteur.Berkeley.EDU> Date: 11 Sep 90 23:39:20 GMT References: <9009041747.AA05001@mvax.EE.CORNELL.EDU> <27608@pasteur.Berkeley.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: ktoh@cy.berkeley.edu.UUCP (Kenny Toh) Organization: Postgres Research Group, UC Berkeley Lines: 54 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.