Article View: fj.sys.next
Article #3788Gnuplot.app
From: Tetsuro Konishi
Date: Tue, 08 Dec 1992 11:17
Date: Tue, 08 Dec 1992 11:17
236 lines
9447 bytes
9447 bytes
$@>.@>!wL>8E20Bg$G$9!#(J sonata $@$+$i$b$i$C$F$-$?(J Gnuplot $@!J(Jgnuplot $@$N(J NeXTstep$@BP1~HG!K$r(J anonymous ftp $@%5%$%H(J etlport ( 192.31.197.99 ) $@$KCV$-$^$7$?!#!!(J $@%G%#%l%/%H%j$O(J pub/NeXT/submission $@$G$9!#(J -rw-r----- 1 100 100 7276 Dec 7 17:15 Gnuplot0.55.README -rw-r----- 1 100 100 856973 Dec 7 17:22 Gnuplot0.55.tar.Z gnuplot $@$O4X?t$d%G!<%?$r%W%m%C%H$9$k$?$a$N%=%U%H$G$9!#(J $@L$$@$"$^$j;H$$9~$s$G$$$^$;$s$,!"%3%^%s%I%i%$%sHG$HHf3S$9$k$H!"(J $@0lEY$KJ#?t$N%0%i%U$rI=<(=PMh$k$J$I;H$$0W$$E@$,$"$j$^$9!#0lJ}!"(J eepic $@$d(J Adoobe Illustrator $@$J$I!"(JEPS$@0J30$N%U%)!<%^%C%H$X$N(J $@=PNO$O=PMh$J$$$N$G!"%3%^%s%I%i%$%sHG$HJ;MQ$9$k7A$K$J$j$^$9!#(J $@!J(JGnuplot0.55.tar.Z $@$K$O!"(J NeXTstep$@HG$H%3%^%s%I%i%$%sHG$HN>J}(J $@4^$^$l$F$$$^$9!#!K(J NeXT$@>e$G$N%0%i%UIA$-%=%U%H$O$$$m$$$m;H$C$F$_$^$7$?$,!"(J $@$3$N(JGnuplot.app$@$,!";H$$0W$5$H5!G=$N%P%i%s%9$,$$$A$P$s$$$$$N$G$O(J $@$J$$$+$H;W$$$^$9!#0J2<$K(JREADME$@$rIU$1$F$*$-$^$9!((J ----%<--------%<--------%<--------%<--------%<--------%<--------%<---- Gnuplot NeXTSTEP Front End 0.55 November 1992 Contents -------- The file package should have unpacked into a folder called Gnuplot containing the following: -- Gnuplot.app This contains the pre-compiled (under NeXTSTEP 2.1), ready-to-go app which may be copied to ~/Apps or wherever you like. -- NeXTSTEP For those people who would rather compile the software themselves, this folder contains all the files necessary to build Gnuplot.app. -- Samples This folder contains sample documents created specifically for the NeXTSTEP version. -- gnuplot3.2 Several files from the Gnuplot 3.2 distribution are not required to build Gnuplot.app but are included here, for completeness. Documentation, demo files, and support documents pertaining only to original Gnuplot are here as well. Building and Installing Gnuplot.app ----------------------------------- To install the pre-compiled app, simply drag Gnuplot.app to the folder of your choice. To build and install the NeXTSTEP version of Gnuplot, launch Terminal or Stuart and cd to the NeXTSTEP directory. Then choose one of the these options: -- to compile under NeXTSTEP 3.0, type "make nextstep3" and then "make install" to install the app in ~/Apps. The nextstep3 target reduces the number of compilation warnings and avoids importing header files that do not exist in 3.0. Plotting data files by dragging them onto the app icon does not work in 3.0. (You'll still recieve compilation warnings for any references to a Speaker or Listener, and a couple on plot.c, but they can be ignored.) -- to build the app for NeXTSTEP 2.x and install it in ~/Apps, type "make install". This will create a file package "Gnuplot.app" in your Apps folder which contains all the files necessary for running either the NeXTSTEP version or the command line version of Gnuplot. (You will recieve compilation warnings on parse.c and plot.c, which can be ignored.) -- to build the app for NeXTSTEP 2.x and install it in a folder other than ~/Apps, type "make INSTALLDIR=/LocalApps install" replacing /LocalApps with the desired folder. You must have write access to the install folder, of course. -- to build the app for NeXTSTEP 2.x right here without installing it, type "make". It will create the executable (called "Gnuplot") in the current directory. Note that this app requires the various TIFF and NIB files in the NeXTSTEP directory to be present as it is running, so moving the executable from this directory will cause the NeXTSTEP version to fail. Launching the NeXTSTEP Version ------------------------------ To launch the NeXTSTEP version, double click its icon in the Workspace File Viewer. The app will launch and an untitled plot will be created. To look at some of the sample documents, choose "Open..." from the "Plot" menu and select the sample plot(s) in the NeXTSTEP/SamplePlots directory. (Alternatively, you may double click the sample plot(s) in the Workspace File Viewer.) Running the Command Line Version -------------------------------- To run the command line version, go to a Terminal or Stuart window, cd to the directory containing the executable (probably ~/Apps/Gnuplot.app) and type "./Gnuplot -c". The -c specifies that you want the command line version. The standard Gnuplot banner and copyright information will be displayed, and you will get a "gnuplot>" prompt. If you have files of Gnuplot commands, you may load them into the command line version with "./Gnuplot -c filename". You may also load them into the NeXTSTEP version if you give each filename a ".gnuplot" extension. (Note that irrelevant commands, such as set terminal, set output, pause, and any commands after the first plot command, will be ignored, and you should use full path names when specifying external files.) What the NeXTSTEP Version Can't Do ---------------------------------- I wrote this app primarily for myself, and I admit that the Gnuplot features that the app does not support are those that I rarely use. Nearly all of them would be easy to implement because they are supported by the underlying code, I just haven't added them to the interface yet. Specifically, the following features are not included but will (probably) make it into any subsequent releases: -- Ranges for parametric plots -- Re-ordering of functions within a pair/triple for parametric plots -- Positioning of titles and axis labels -- Labels that can be placed at arbitrary locations and arrows that can point to arbitrary locations (although I bet anyone with an app like Diagram will never use these two features) -- Support for 3-dimensional features, like surfaces, contours, isolinear samples, and hidden graphics. -- User-defined functions and variables -- Custom formats for custom tic marks Additionally, I'd like a few more NeXTSTEP additions: -- Color support -- Better graphical depiction of pairs/triples of functions for parametric plots in the Data Inspector -- Allow creation of raw data points within Gnuplot, with the option of saving the data to a text file, which would allow the app to... -- Provide a service that allows the user to select columns of text in other apps and plot them with Gnuplot -- Ability to drag data files onto the plot window instead of onto the Gnuplot app icon. It would make more sense and would cause less conflict with dock-extenders like Engage. I was just being lazy. -- Support new 3.0 features, like interactive help, links, etc. Acknowledgements ---------------- Although I worked on this alone, I examined and borrowed code and ideas from many sources: -- NeXTSTEP Examples and Mini-Examples primarily CellScrollView by R. Dunbar Poor and Mai Nguyen, ScrollDoodScroll by Jayson Adams, and Draw by Paul Hegarty. Any classes or methods that I used have their origins documented in the code. -- Nick Strobel, whose Gnuplot terminal served as an example. My custom terminal is similar to his first version -- it creates a stream of PostScript which is used to create an NXImage that is composited into the plot window. His second version is faster and less of a memory hog, but it violates some "rules" about calling Objective-C code from a .c file. I'm trying to think of a clean, legal way around this. (By the way, Strobel's terminal is included with the official Gnuplot 3.2 distribution and is, therefore, included here if you want to use it.) -- Russell Lang, whose official Gnuplot PostScript terminal driver is the basis for my custom terminal driver. In fact, mine is a very slight modification of his. -- Usenet's comp.sys.next.programmer. The best source of cool tips on the planet. Rejected Names -------------- I almost named this app something else, like Plot! Gnuisance DataGraf Thicken Visual Gnuplot Denoument but opted for the less artsy, less monumental "Gnuplot Front End," which has about as much charm, sophistication, and panache as does "The IBM Personal Computer Company." Enjoy, Rob davis@ecn.purdue.edu 71302.273@compuserve.com ----%<--------%<--------%<--------%<--------%<--------%<--------%<---- $@!t$=$l$G$b$^$@(J Ngraph(on 98)$@$b$d$a$i$l$J$$(J :) -- $@>.@>!!E/O:(J $@L>8E20Bg3XM}3XItJ*M}(J $@#R8&(J :$@!!8&5f<<!!(J052(781)5111 $@Fb@~!!(J2438
Technical Details
Message-ID:
<C42636A.92Dec8201709@nucc.cc.nagoya-u.ac.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!wnoc-kyo!kuis!kudpc!nucc!nucc!c42636aShow Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 115a95,429c001524285130,start X-Google-Attributes: gid115a95,public X-Google-ArrivalTime: 1992-12-08 04:05:36 PST Newsgroups: fj.sys.next Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!wnoc-kyo!kuis!kudpc!nucc!nucc!c42636a From: c42636a@nucc.cc.nagoya-u.ac.jp (Tetsuro Konishi) Subject: Gnuplot.app Message-ID: <C42636A.92Dec8201709@nucc.cc.nagoya-u.ac.jp> Sender: c42636a@nucc.cc.nagoya-u.ac.jp (Tetsuro Konishi) Organization: Nagoya University , Nagoya, Japan. Distribution: fj Date: Tue, 8 Dec 1992 11:17:09 GMT Lines: 236