home *** CD-ROM | disk | FTP | other *** search
/ Avalon - 3D Objects & Resources / Avalon.iso / faqs / gnuplot.faq < prev    next >
Internet Message Format  |  1995-01-01  |  46KB

  1. Path: bloom-beacon.mit.edu!newsserver.pixel.kodak.com!news.ltw.org!news.kei.com!news.mathworks.com!udel!gatech!howland.reston.ans.net!pipex!uunet!zib-berlin.de!news.uni-ulm.de!rz.uni-karlsruhe.de!fg70.rz.uni-karlsruhe.de!ig25
  2. From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
  3. Newsgroups: comp.graphics.gnuplot,comp.answers,news.answers
  4. Subject: comp.graphics.gnuplot FAQ (Frequent Answered Questions)
  5. Supersedes: <comp-graphics-gnuplot-faq_789276185@fg70.rz.uni-karlsruhe.de>
  6. Followup-To: comp.graphics.gnuplot
  7. Date: 19 Jan 1995 03:23:06 GMT
  8. Organization: University of Karlsruhe, Germany
  9. Lines: 1072
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: 16 Feb 1995 03:23:04 GMT
  12. Message-ID: <comp-graphics-gnuplot-faq_790485784@fg70.rz.uni-karlsruhe.de>
  13. Reply-To: ig25@rz.uni-karlsruhe.de
  14. NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de
  15. Mime-Version: 1.0
  16. Content-Type: text/plain; charset=iso-8859-1
  17. Content-Transfer-Encoding: 8bit
  18. Summary: This is the FAQ (Frequently Answered Questions) list of the
  19.          comp.graphics.gnuplot newsgroup, which discusses the
  20.          gnuplot program for plotting 2D - and 3D - graphs.
  21. Keywords: computer graphics, gnuplot
  22. Xref: bloom-beacon.mit.edu comp.graphics.gnuplot:6120 comp.answers:9592 news.answers:33414
  23.  
  24.  
  25. Archive-name: graphics/gnuplot-faq
  26. Version: Sat Jan  7 04:23:04 MEZ 1995
  27. Posting-frequency: every 14 days
  28. URL: http://fg70.rz.uni-karlsruhe.de/~ig25/gnuplot-faq/
  29.  
  30.    comp.graphics.gnuplot
  31.  
  32.             COMP.GRAPHICS.GNUPLOT FAQ (FREQUENT ANSWERED QUESTIONS)
  33.  
  34.    This is the FAQ (Frequently Answered Questions) list of the
  35.    comp.graphics.gnuplot newsgroup, which discusses the gnuplot program
  36.    for plotting 2D - and 3D - graphs.
  37.  
  38.    Most of the information in this document came from public discussion
  39.    on comp.graphics.gnuplot; quotations are believed to be in the public
  40.    domain.
  41.  
  42.    Here's a list of the questions. If you are looking for the answer for
  43.    a specific question, look for the string Qx.x: at the beginning of a
  44.    line, with x.x being the question number. Sections in this FAQ are
  45.      * 0. Meta - Questions
  46.      * 1. General Information
  47.      * 2. Setting it up
  48.      * 3. Working with it
  49.      * 4. Wanted features
  50.      * 5. Miscellaneous
  51.      * 6. Making life easier
  52.      * 7. Known problems
  53.      * 8. Credits
  54.  
  55.  
  56.      _________________________________________________________________
  57.  
  58. Questions:
  59.  
  60.   SECTION 0: META - QUESTIONS
  61.      * Q0.1: Where do I get this document?
  62.      * Q0.2: Where do I send comments about this document?
  63.  
  64.   SECTION 1: GENERAL INFORMATION
  65.      * Q1.1: What is gnuplot?
  66.      * Q1.2: How did it come about and why is it called gnuplot?
  67.      * Q1.3: Does gnuplot have anything to do with the FSF and the GNU
  68.        project?
  69.      * Q1.4: What does gnuplot offer?
  70.      * Q1.5: Is gnuplot suitable for batch processing?
  71.      * Q1.6: Can I run gnuplot on my computer?
  72.  
  73.   SECTION 2: SETTING IT UP
  74.      * Q2.1: What is the current version of gnuplot?
  75.      * Q2.2: Where can I get gnuplot?
  76.      * Q2.3: How do I get gnuplot to compile on my system?
  77.      * Q2.4: What documentation is there, and how do I get it?
  78.  
  79.   SECTION 3: WORKING WITH IT
  80.      * Q3.1: How do I get help?
  81.      * Q3.2: How do I print out my graphs?
  82.      * Q3.3: How do I include my graphs in <word processor>?
  83.  
  84.   SECTION 4: WANTED FEATURES
  85.      * Q4.1: Does gnuplot have hidden line removal?
  86.      * Q4.2: Does gnuplot support bar-charts/histograms/boxes?
  87.      * Q4.3: Does gnuplot support multiple y-axes on a single plot?
  88.      * Q4.4: Can I put multiple plots on a single page?
  89.      * Q4.5: Can I put both data files and commands into a single file?
  90.      * Q4.6: Can I put Greek letters and super/subscripts into my labels?
  91.      * Q4.7 Can I do 1:1 scaling of axes?
  92.      * Q4.8: Can I put tic marks for x and y axes into 3d plots?
  93.      * Q4.9: Does gnuplot support a driver for ?
  94.      * Q4.10: Can I put different text sizes into my plots?
  95.      * Q4.11: How do I modify gnuplot?
  96.      * Q4.12: How do I skip data points?
  97.  
  98.   SECTION 5: MISCELLANEOUS
  99.      * Q5.1: I've found a bug, what do I do?
  100.      * Q5.2: Can I use gnuplot routines for my own programs?
  101.      * Q5.3: What extensions have people made to gnuplot? Where can I get
  102.        them?
  103.      * Q5.4: Can I do heavy - duty data processing with gnuplot?
  104.      * Q5.5: I have ported gnuplot to another system, or patched it. What
  105.        do I do?
  106.  
  107.   SECTION 6: MAKING LIFE EASIER
  108.      * Q6.1: How do I plot two functions in non - overlapping regions?
  109.      * Q6.2: How do I run my data through a filter before plotting?
  110.      * Q6.3: How do I make it easier to use gnuplot with LaTeX?
  111.      * Q6.4: How do I save and restore my settings?
  112.      * Q6.5: How do I plot lines (not grids) using splot?
  113.      * Q6.6: How do I plot a function f(x,y) which is bounded by other
  114.        functions in the x-y plain?
  115.      * Q6.7: How do I get rid of <feature in a plot>?
  116.      * Q6.8: How do I call gnuplot from my own programs ?
  117.  
  118.   SECTION 7: KNOWN PROBLEMS
  119.      * Q7.1: Gnuplot is not plotting any points under X11! How come?
  120.      * Q7.2: My isoline data generated by a Fortran program is not
  121.        handled correctly. What can I do?
  122.      * Q7.3: Why does gnuplot ignore my very small numbers?
  123.      * Q7.4: Gnuplot is plotting nothing when run via gnuplot <filename>!
  124.        What can I do?
  125.      * Q7.5: My formulas are giving me nonsense results! What's going on?
  126.      * Q7.6: My Linux gnuplot complains about a missing gnuplot_x11. What
  127.        is wrong?
  128.  
  129.   SECTION 8: CREDITS
  130.  
  131.   SECTION 0: META - QUESTIONS.
  132.  
  133.     Q0.1: Where do I get this document?
  134.           This document is posted about once every two weeks to the
  135.           newsgroups comp.graphics.gnuplot, comp.answers and
  136.           news.answers. Like many other FAQ's, its newest (plaintext)
  137.           version is available via anonymous ftp from
  138.           ftp://rtfm.mit.edu/pub/usenet/news.answers/graphics/gnuplot-faq
  139.           .
  140.  
  141.           If you have access to the WWW, you can get the newest version
  142.           of this document from
  143.           http://fg70.rz.uni-karlsruhe.de/~ig25/gnuplot-faq.html/
  144.  
  145.    Q0.2: Where do I send comments about this document?
  146.           Send comments, suggestions etc. via e-mail to Thomas Koenig ,
  147.           ig25@rz.uni-karlsruhe.de or ig25@dkauni2.bitnet.
  148.  
  149.  
  150.      _________________________________________________________________
  151.  
  152.   SECTION 1: GENERAL INFORMATION
  153.  
  154.     Q1.1: What is gnuplot?
  155.           Gnuplot is a command-driven interactive function plotting
  156.           program. It can be used to plot functions and data points in
  157.           both two- and three- dimensional plots in many different
  158.           formats, and will accommodate many of the needs of today's
  159.           scientists for graphic data representation. Gnuplot is
  160.           copyrighted, but freely distributable; you don't have to pay
  161.           for it.
  162.  
  163.    Q1.2: How did it come about and why is it called gnuplot?
  164.           The authors of gnuplot are:
  165.  
  166.           Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John
  167.           Campbell, Gershon Elber, Alexander Woo and many others.
  168.  
  169.           The following quote comes from Thomas Williams:
  170.  
  171.      I was taking a differential equation class and Colin was taking
  172.      Electromagnetics, we both thought it'd be helpful to visualize the
  173.      mathematics behind them. We were both working as sys admin for an EE
  174.      VLSI lab, so we had the graphics terminals and the time to do some
  175.      coding. The posting was better received than we expected, and
  176.      prompted us to add some, albeit lame, support for file data.
  177.  
  178.      Any reference to GNUplot is incorrect. The real name of the program
  179.      is "gnuplot". You see people use "Gnuplot" quite a bit because many
  180.      of us have an aversion to starting a sentence with a lower case
  181.      letter, even in the case of proper nouns and titles. Gnuplot is not
  182.      related to the GNU project or the FSF in any but the most peripheral
  183.      sense. Our software was designed completely independently and the
  184.      name "gnuplot" was actually a compromise. I wanted to call it
  185.      "llamaplot" and Colin wanted to call it "nplot." We agreed that
  186.      "newplot" was acceptable but, we then discovered that there was an
  187.      absolutely ghastly pascal program of that name that the Computer
  188.      Science Dept. occasionally used. I decided that "gnuplot" would make
  189.      a nice pun and after a fashion Colin agreed.
  190.  
  191.    Q1.3: Does gnuplot have anything to do with the FSF and the GNU
  192.           project?
  193.           Gnuplot is neither written nor maintained by the FSF. It is not
  194.           covered by the General Public License, either.
  195.  
  196.           However, the FSF has decided to distribute gnuplot as part of
  197.           the GNU system, because it is useful, redistributable software.
  198.  
  199.    Q1.4: What does gnuplot offer?
  200.  
  201.           + Plotting of two - dimensional functions and data points in
  202.             many different styles (points, lines, error bars)
  203.           + plotting of three - dimensional data points and surfaces in
  204.             many different styles (contour plot, mesh).
  205.           + support for complex arithmetic
  206.           + self - defined functions
  207.           + support for a large number of operating systems, graphics
  208.             file formats and devices
  209.           + extensive on-line help
  210.           + labels for title, axes, data points
  211.           + command line editing and history on most platforms
  212.  
  213.    Q1.5: Is gnuplot suitable for batch processing?
  214.           Yes. You can read in files from the command line, or you can
  215.           redirect your standard input to read from a file. Both data and
  216.           command files can be generated automatically, from data
  217.           acquisition programs or whatever else you use.
  218.  
  219.    Q1.6: Can I run gnuplot on my computer?
  220.           Gnuplot is available for a number of platforms. These are: Unix
  221.           (X11 and NeXTSTEP), VAX/VMS, OS/2, MS-DOS, Amiga, MS-Windows,
  222.           OS-9/68k, Atari ST and the Macintosh. Modifications for NEC
  223.           PC-9801 are said to exist (where?).
  224.  
  225.  
  226.      _________________________________________________________________
  227.  
  228.   SECTION 2: SETTING IT UP
  229.  
  230.     Q2.1: What is the current version of gnuplot?
  231.           The current version of gnuplot is 3.5, which is a bugfix
  232.           release over 3.4.
  233.  
  234.    Q2.2: Where can I get gnuplot?
  235.           [This information may be dated, due to the release of gnuplot
  236.           3.5. Please report any inaccuracies, if you find them. Ed.]
  237.  
  238.           All of the later addresses refer to ftp sites. Please note that
  239.           it is preferable for you to use the symbolic name, rather than
  240.           the IP address given in brackets, because that address is much
  241.           more subject to change.
  242.  
  243.           The official distribution site for the gnuplot source is
  244.           ftp.dartmouth.edu [129.170.16.4], the file is called
  245.           /pub/gnuplot/gnuplot3.5.tar.Z. Official mirrors of that
  246.           distribution are (for Australia) monu1.cc.monash.edu.au
  247.           [130.194.1.101] and (for Europe) irisa.irisa.fr
  248.           [131.254.254.2]. You can also get it from your friendly
  249.           neighbourhood comp.sources.misc archive.
  250.  
  251.           MS-DOS and MS-Windows binaries are available from
  252.  
  253.           + oak.oakland.edu (North America) [141.210.10.117] as
  254.             pub/msdos/plot/gpt35*.zip,
  255.           + garbo.uwasa.fi (Europe) [128.214.87.1] as /pc/plot/gpt35*.zip
  256.             and
  257.           + archie.au (Australia) [139.130.4.6] as
  258.             micros/pc/oak/plot/gpt35*.zip.
  259.  
  260.    The files are: gpt35doc.zip, gpt35exe.zip, gpt35src.zip and
  261.           gpt35win.zip.
  262.  
  263.           There is a special MS-DOS version for 386 or better processors;
  264.           it is available from the official gnuplot sites as DOS34.zip.
  265.  
  266.           OS/2 2.x binaries are at ftp-os2.nmsu.edu [128.123.35.151], in
  267.           /os2/2.x/unix/gnuplt35.zip.
  268.  
  269.           Amiga sources and binaries are available from ftp.wustl.edu
  270.           [128.252.135.4] as /pub/aminet/util/gnu/gnuplot-3.5.lha; there
  271.           are numerous mirrors of this distribution, for example
  272.           ftp.uni-kl.de, oes.orst.edu or ftp.luth.se.
  273.  
  274.           The NeXTSTEP front end can be found at sonata.cc.purdue.edu and
  275.           cs.orst.edu.
  276.  
  277.           A version for OS-9/68K can be found at cabrales.cs.wisc.edu
  278.           [128.105.36.20] as /pub/OSK/GRAPHICS/gnuplot32x.tar.Z; it
  279.           includes both X-Windows and non - X-windows versions.
  280.  
  281.           A version of gnuplot for the Mac can reportedly be found on
  282.           archive.umich.edu and sumex-aim.stanford.edu, directories
  283.           unknown.
  284.  
  285.           Executable files, plus documentation in Japanese, exist for the
  286.           X680x0 on ftp.csis.oita-u.ac.jp [133.37.56.112] in
  287.           /pub/x68k/fj.binaries.x68000/vol2/gnuplt35.lzh.
  288.  
  289.           People without ftp access can use an ftp-mail server; send a
  290.           message saying 'help' to bitftp@pucc.bitnet (for BITNET only)
  291.           or to ftpmail@ftp.dartmouth.edu.
  292.  
  293.           For a uuencoded copy of the the gnuplot sources (compressed tar
  294.           file), send this as the body of a message to
  295.           ftpmail@ftp.dartmouth.edu:
  296.  
  297.  
  298.         open
  299.         cd pub/gnuplot
  300.         mode binary
  301.         get gnuplot3.5.tar.Z
  302.         quit
  303.  
  304.    If you have some problem, you might need to stick
  305.  
  306.  
  307.         reply-to  <your-email-address-here>
  308.  
  309.    before all the above.
  310.  
  311.           It is a good idea to look for a nearby ftp site when
  312.           downloading things. You can use archie for this. See if an
  313.           archie client is installed at your system (by simply typing
  314.           archie at the command prompt), or send mail to archie@sura.net
  315.           with the word 'help' in both the subject line and the body of
  316.           the mail. However, be aware that the version you find at a near
  317.           ftp site may well be out of date; check the last modification
  318.           date and the number of bytes against the newest release at one
  319.           of the official servers.
  320.  
  321.    Q2.3: How do I get gnuplot to compile on my system?
  322.           As you would any other installation. Read the files README and
  323.           README.Install, edit the Makefile according to taste, and run
  324.           make or whatever is suitable for your operating system.
  325.  
  326.           If you get a complaint about a missing file libplot.a or
  327.           something similar when building gnuplot for X11, remove
  328.           -DUNIXPLOT from the TERMFLAGS= line, remove -lplot from the
  329.           DTBS= line and run again. If you are making X11 on a sun, type
  330.           'make x11_sun'.
  331.  
  332.    Q2.4: What documentation is there, and how do I get it?
  333.           The documentation is included in the source distribution. Look
  334.           at the docs subdirectory, where you'll find
  335.  
  336.           + a Unix man page, which says how to start gnuplot
  337.           + a help file, which also can be printed as a manual
  338.           + a tutorial on using gnuplot with LaTeX
  339.           + a quick reference summary sheet for TeX only
  340.  
  341.    PostScript copies of the documentation can be ftp'd from
  342.           ftp.dartmouth.edu, in pub/gnuplot, as manual.ps.Z and
  343.           tutorial.ps.Z
  344.  
  345.           Andy Liaw and Dick Crawford have written a 16-page user's
  346.           guide. It is available from ftp://picard.tamu.edu/pub/gnuplot
  347.           as gptug.tex (also get example.tex from the same directory),
  348.           gptug.dvi or gptug.ps.
  349.  
  350.           At the same site, there's a two- page instruction sheet for the
  351.           enhpost PostScript driver (see Q4.6 ) as enhpost.guide.ps and a
  352.           short guide to gnuplot PostScript files, as gp-ps.doc.
  353.  
  354.           A Chinese translation of the gnuplot manual can be found on
  355.           ftp://servers.nctu.edu.tw/misc/environment/NCTU_EV/classnote/gn
  356.           uplot.ps.gz .
  357.  
  358.           There is a WWW hompepage for gnuplot at
  359.           http://www.cs.dartmouth.edu/gnuplot_info.html, which includes
  360.           the reference manual and a demo.
  361.  
  362.  
  363.      _________________________________________________________________
  364.  
  365.   SECTION 3: WORKING WITH IT
  366.  
  367.     Q3.1: How do I get help?
  368.           Give the 'help' command at the initial prompt. After that, keep
  369.           looking through the keywords. Good starting points are 'plot'
  370.           and 'set'.
  371.  
  372.           Read the manual, if you have it.
  373.  
  374.           Look through the demo subdirectory; it should give you some
  375.           ideas.
  376.  
  377.           Ask your colleagues, the system administrator or the person who
  378.           set up gnuplot.
  379.  
  380.           Post a question to comp.graphics.gnuplot or send mail to the
  381.           gatewayed mailing list info-gnuplot@dartmouth.edu. If you want
  382.           to subscribe to the mailing list, send mail to
  383.           info-gnuplot-request@dartmouth.edu, but please don't do this if
  384.           you can get comp.graphics.gnuplot directly. If you pose a
  385.           question there, it is considered good form to solicit e-mail
  386.           replies and post a summary.
  387.  
  388.    Q3.2: How do I print out my graphs?
  389.           The kind of output produced is determined by the 'set terminal'
  390.           command; for example, 'set terminal postscript' will produce
  391.           the graph in PostScript format. Output can be redirected using
  392.           the 'set output' command.
  393.  
  394.           As an example, the following prints out a graph of sin(x) on a
  395.           Unix machine running X - Windows.
  396.  
  397.  
  398.         gnuplot> plot [-6:6] sin(x)
  399.         gnuplot> set terminal postscript
  400.         Terminal type set to 'postscript'
  401.         Options are 'landscape monochrome "Courier" 14'
  402.         gnuplot> set output "sin.ps"
  403.         gnuplot> replot
  404.         gnuplot> set output              # set output back to default
  405.         gnuplot> set terminal x11        # ditto for terminal type
  406.         gnuplot> ! lp -ops sin.ps        # print ps - File (site dependent)
  407.         request id is lprint-3433 (standard input)
  408.         lp: printed file sin.ps on fg20.rz.uni-karlsruhe.de (5068 Byte)
  409.         !
  410.         gnuplot>
  411.  
  412.    Q3.3: How do I include my graphs in <word processor>?
  413.           Basically, you save your plot to a file in a format your word
  414.           processor can understand (using "set term" and "set output",
  415.           see above), and then you read in the plot from your word
  416.           processor.
  417.  
  418.           Details depend on the kind of word processor you use; use "set
  419.           term" to get a list of available file formats.
  420.  
  421.           Many word processors can use Encapsulated PostScript for
  422.           graphs. This can be generated by the "set terminal postscript
  423.           eps" command. Most MS-DOS word processors understand HPGL
  424.           (terminal type hpgl).
  425.  
  426.           With TeX, it depends on what you use to print your dvi files.
  427.           If you use dvips or dvi2ps, you can use Encapsulated
  428.           PostScript. For emTeX (popular for MS-DOS), you can use emTeX,
  429.           otherwise use the LaTeX terminal type, which generates a
  430.           picture environment.
  431.  
  432.           If nothing else helps, try using the pgm or ppm format and
  433.           converting it to a bitmap format your favourite word processor
  434.           can understand. An invaluable tool for this is Jef Poskanzer's
  435.           PBMPLUS package.
  436.  
  437.           The PBMPLUS package is available in the contrib distribution
  438.           for Xwindows. The original site for this is ftp.x.org:/contrib,
  439.           there are many mirrors, e.g.
  440.           ftp.th-darmstadt.de:/pub/X11/contrib or
  441.           sunsite.unc.edu:/pub/X11/contrib.
  442.  
  443.           The most recent release of pbm by the author is dated December
  444.           91 and is called pbmplus10dec91.tar.Z
  445.  
  446.           There is new version including lots of patches from the net
  447.           that is not maintained by the author called netpbm, with the
  448.           newest version called netpbm-7dec1993.tar.gz.
  449.  
  450.           Check archie (see Q2.2 ) for an archive site near you.
  451.  
  452.  
  453.      _________________________________________________________________
  454.  
  455.   SECTION 4: WANTED FEATURES
  456.  
  457.     Q4.1: Does gnuplot have hidden line removal?
  458.           Version 3.5 supports hidden line removal on all platforms
  459.           except MS-DOS; use the command
  460.  
  461.  
  462.         set hidden3d
  463.  
  464.    If someone can solve the 64K DGROUP memory problem, gnuplot would
  465.           support hidden line removal on MS-DOS as well. Version 3.2
  466.           supports limited hidden line removal.
  467.  
  468.    Q4.2: Does gnuplot support bar-charts/histograms/boxes?
  469.           As of version 3.4, it does; use the style "with boxes" for bar
  470.           charts. To get filled boxes, you can try a modification by
  471.           Steve Cumming, available via ftp from
  472.           ftp://grebe.geog.ubc.ca/pub/gnuplot as box.tar.
  473.  
  474.    Q4.3: Does gnuplot support multiple y-axes on a single plot?
  475.           Yes, with two unofficial mods, multiplot.shar and borders.shar.
  476.           They can be obtained from
  477.           ftp://ftp.dartmouth.edu/pub/gnuplot/contrib/multi_woo.zip or
  478.           ftp://ftp.cygnus.edu/incoming/gpx38.zip.
  479.  
  480.    Q4.4: Can I put multiple plots on a single page?
  481.           Yes, with the multiplot.shar mod. If you are using PostScript
  482.           output, check out mpage, which can be ftp'd from
  483.           ftp.eng.umd.edu:pub/misc/mpage-2.tar.Z
  484.  
  485.    Q4.5: Can I put both data files and commands into a single file?
  486.           This is a feature which will probably be in gnuplot 3.6, which
  487.           is in early development. Ask for the mixed.shar patch from
  488.           woo@playfair.stanford.edu.
  489.  
  490.    Q4.6: Can I put Greek letters and super/subscripts into my labels?
  491.           You might try using the LaTeX terminal type and putting text
  492.           like \alpha_{3} into it.
  493.  
  494.           David Denholm has written a PostScript terminal which allows
  495.           for super/and subscripts, such as a^x or { Symbol a }. Ftp to
  496.           sotona.phys.soton.ac.uk [152.78.192.42] and get divpost34.trm.
  497.           To install it, copy it over ~gnuplot/term/post.trm and
  498.           recompile. A never version is mattpost.trm, rewritten by Matt
  499.           Heffron. Yet another version (the recommended one) is
  500.           enhpost.trm, which might make it into gnuplot 3.6.
  501.  
  502.    Q4.7: Can I do 1:1 scaling of axes?
  503.           Not easily.
  504.  
  505.    Q4.8: Can I put tic marks for x and y axes into 3d plots?
  506.           In version 3.5, you can; use the "with boxes" option.
  507.  
  508.    Q4.9: Does gnuplot support a driver for ?
  509.           To see a list of the available graphic drivers for your
  510.           installation of gnuplot, type "set term".
  511.  
  512.           Some graphics drivers are included in the normal distribution,
  513.           but are uncommented by default. If you want to use them, you'll
  514.           have to change ~gnuplot/term.h.
  515.  
  516.    Q4.10: Can I put different text sizes into my plots?
  517.           If you use PostScript output, you can use Dave Denholm's and
  518.           Matt Heffron's updated PostScript driver,
  519.           /sotona.phys.soton.ac.uk:/mattpost.trm (see also Q4.6 ).
  520.  
  521.    Q4.11 How do I modify gnuplot, and apply 'patches'?  For this, you
  522.    will need to recompile gnuplot.
  523.  
  524.    Modifications people make are either done by replacing files, such as
  525.    terminal drivers, or by 'patching'. If a file is a replacement, it
  526.    will probably tell you in its README or in the lines at the beginning.
  527.  
  528.  
  529.    To patch a file, you need Larry Wall's patch utility. On many UNIX
  530.    systems, it is already installed; do a man patch to check. If it
  531.    isn't, you'll have to get it; it can be found wherever GNU software is
  532.    archived.
  533.  
  534.    Q4.12 How do I skip data points?     By specifying ? as a data value,
  535.    as in
  536.  
  537.         1 2
  538.         2 3
  539.         3 ?
  540.         4 5
  541.  
  542.    Q4.13 How do I plot every nth point?         You can apply the patch
  543.    point_skip from the contrib section (see Q5.3 or, assuming you have
  544.    awk installed on your system, you can use the following line:
  545.  
  546.         gnuplot> plot "< awk '{if(NR%5==0)print}' file.dat"
  547.  
  548.    plots every 5th line, and
  549.  
  550.         gnuplot> plot "< awk '$0 !~ /^#/ {if(NR%40==0)print $1, $4}' file.dat"
  551.  
  552.    plots every 40th line while skipping commented lines.
  553.      _________________________________________________________________
  554.  
  555.   SECTION 5: MISCELLANEOUS
  556.  
  557.     Q5.1: I've found a bug, what do I do?
  558.           First, try to see whether it actually is a bug, or whether it
  559.           is a feature which may be turned off by some obscure set -
  560.           command.
  561.  
  562.           Next, see wether you have an old version of gnuplot; if you do,
  563.           chances are the bug has been fixed in a newer release.
  564.  
  565.           If, after checking these things, you still are convinced that
  566.           there is a bug, proceed as follows. If you have a fairly
  567.           general sort of bug report, posting to comp.graphics.gnuplot is
  568.           probably the way to go. If you have investigated a problem in
  569.           detail, especially if you have a context diff that fixes the
  570.           problem, please e-email a report to bug-gnuplot@dartmouth.edu.
  571.           The bug-gnuplot list is for reporting and collecting bug fixes,
  572.           the comp.graphics.gnuplot newsgroup will be more help for
  573.           finding work arounds or actually solving gnuplot related
  574.           problems. If you do send in a bug report, be sure and include
  575.           the version of gnuplot (including patchlevel), terminal driver,
  576.           operating system, an exact description of the bug and input
  577.           which can reproduce the bug. Also, any context diffs should be
  578.           referenced against the latest official version of gnuplot if at
  579.           all possible.
  580.  
  581.    Q5.2: Can I use gnuplot routines for my own programs?
  582.           Yes. John Campbell has written gplotlib, a version of gnuplot
  583.           as C subroutines callable from a C program. This is available
  584.           as gplotlib.tar.Z on the machine ftp.nau.edu in the directory
  585.           /pub/gplotlib.tar.Z. This library has been updated to be
  586.           compatible with version 3.5. Ask woo@playfair.stanford.edu.
  587.  
  588.    Q5.3: What extensions have people made to gnuplot? Where can I get
  589.           them?
  590.  
  591.  
  592.           Extensions are available from
  593.           ftp://ftp.dartmouth.edu/pub/gnuplot/contrib/ . It contains the
  594.           following files:
  595.  
  596.     Point Skips
  597.  
  598.    Data Filtering Instead of just having two params following the style
  599.           param, there are now 4:
  600.  
  601.           + 1: line_type
  602.           + 2: point_type
  603.           + 3: point_skip - gives the number of data samples per plotted
  604.             point
  605.           + 4: point_offs - gives the sample number on which to plot the
  606.             first point
  607.  
  608.    Thus points are plotted only for the samples n satisfying n =
  609.           point_skip*i + point_offs for some non-negative integer i.
  610.           From: pixar!sun!prony.Colorado.EDU!clarkmp@ucbvax.berkeley.edu
  611.           (Michael Clark)
  612.  
  613.    Point Skip with Awk With UNIX, gnuplot> plot "
  614.  
  615.    New Xlib mods. From: gregg hanna (gregor@kafka.saic.com)
  616.  
  617.     Vectors and Arrows
  618.  
  619.    Program to convert lines to vectors This program turns line segments
  620.           into line segments with a half-arrow at the head: by
  621.           uncommenting two lines below, the arrowhead will be a triangle.
  622.           optional arguments: size angle where size is a fraction of each
  623.           vector's magnitude and angle is in degrees all data taken from
  624.           standard input, and output to standard output. typical
  625.           invocation: arrow 0.2 15 vector.heads From:
  626.           andrew@jarthur.claremont.edu (Andrew M. Ross)
  627.  
  628.    Vect2gp, an awk script to make gnuplot command script to draw a
  629.           vector field map. From: hiro@ice3.ori.u-tokyo.ac.jp (Yasu-Hiro
  630.           YAMAZAKI)
  631.  
  632.    GNUPLOT to SIPP This is a "far from perfect" converter that takes
  633.           gnuplot table output and splits it in polygons. Then it calls
  634.           sipp to render it. You get sipp from isy.liu.se:/pub/sipp or
  635.           ask archie. From: chammer@POST.uni-bielefeld.de (Carsten
  636.           Hammer)
  637.  
  638.     Histograms and Pie Charts
  639.  
  640.    Histogram C program The short C program below is a filter that
  641.           calculates a histogram from a sequence of numbers and prints
  642.           the output in such a format that Gnuplot can plot the histogram
  643.           by the command sequence
  644.  
  645.           !histogram tmp; plot "tmp" with impulses
  646.  
  647.           From: mustafa@seas.smu.edu (Mustafa Kocaturk)
  648.  
  649.    HG is an automatic histogram generator. it reads a column of data
  650.           from an input file and emits a [log] histogram ks does ks or
  651.           chi^2 tests on a set of input arrays. you need the "numerical
  652.           recipes in C" library somewhere on your system to link this
  653.           one. I can not undertake to fix bugs or add features, but I
  654.           might do it if asked. From: Steve Cumming stevec@geog.ubc.ca
  655.  
  656.    Piechart C program The short C program below formats data for
  657.           display as a piechart. From: mccauley@ecn.purdue.edu (James
  658.           Darrell McCauley)
  659.  
  660.     Interprocess Communications
  661.  
  662.    Notes of Windows Hooks From: Maurice
  663.           Castro,maurice@bruce.cs.monash.edu.au
  664.  
  665.    Named Pipes Example From: dtaber@deathstar.risc.rockwell.com (Don
  666.           Taber)
  667.  
  668.    PipeLib What the library does is set up to 20 programs going (like
  669.           gnuplot), then allows you to send to them as if the program
  670.           were typing on the command line. I've included a brief set of
  671.           docs after the source code, in latex format. There is no
  672.           facility to watch the output of a program. From:
  673.           ssclift@neumann.uwaterloo.ca (Simon Clift)
  674.  
  675.    Popen example from lsqrfit The following function sends a command to
  676.           gnuplot. Gnuplot will execute the command just as if you typed
  677.           it at the gnuplot command line. This example is adapted from my
  678.           least squares fitting program which is located at ftp.cdrom.com
  679.           in pub/os2/2_x/unix/lsqrft14.zip. Complete source is included.
  680.           From: michael@krypton.mit.edu (Michael Courtney)
  681.  
  682.     Multiple logical plots on a single page
  683.  
  684.    Gawk script for multiple encapsulated postscript on a page It's
  685.           slightly more flexible than mpage, because it changes the
  686.           aspect ratio of the plots; mpage according to the documentation
  687.           only allows 1, 2, 4, or 8 plots on a page. This script works
  688.           for unix with encapsulated postscript (eps) output. It should
  689.           work with gawk or nawk, although I've only tested it with gawk.
  690.           (Gawk is GNU's version of awk and is available from
  691.           prep.ai.mit.edu.) You just specify how many rows and columns of
  692.           plots you want and it does the rest. For example, gnuplot_eps
  693.           rows=3 cols=2 *.eps | lpr will print all eps files in your
  694.           current directory with 6 on a page. Also, see the comments in
  695.           the file. From: holt@goethe.cns.caltech.edu (Gary Holt)
  696.  
  697.    Sed script for multiple encapsulated postscript on a page You have
  698.           MULTIPLE postscript files each containing a single plot. From:
  699.           wgchoe@scoupe.postech.ac.kr (Choe Won Gyu)
  700.  
  701.    Massive patch with add multiplotcapability to all devices and a lot
  702.           more. The reason it is offered in this form is because the
  703.           original multiplot.pat did not patch correctly into gnuplot
  704.           version 3.5. This mod also add borders options, financial
  705.           plots, multiple line titles and other asundry items. Use at
  706.           your own risk. Look at the top of makefile.r for a more
  707.           complete list of changes. From: Alex Woo,
  708.           woo@playfair.stanford.edu
  709.  
  710.     Miscellaneous Mods
  711.  
  712.    Congp3d3 is a preprocessor to draw contour plots on irregular
  713.           regions. From: mrb2@nrc.gov (Margaret Rose Byrne)
  714.  
  715.    Sockpipe is a socket based pipe needed for the Stardent OS. From:
  716.           Mike Hallesy, Stardent Computer Product Support,
  717.           hal@stardent.com
  718.  
  719.    Time Series is a patch to add multiline titles and labels, time
  720.           series x and y data and tic marks, and automatic resizing of
  721.           plots and much more. From: Hans Olav Eggestad,
  722.           olav@jordforsk.nlh.no
  723.  
  724.     Other Operationing Systems
  725.  
  726.    MacIntosh Port of Version 3.2 From: Noboru Yamamoto,
  727.           sun!kekvax.kek.jp!YAMAMOTO@pixar.com
  728.  
  729.    MacIntosh Port of Version 3.5 From: laval@londres.cma.fr (Philippe
  730.           LAVAL)
  731.  
  732.    OS-9 Port of Version 3.2
  733.  
  734.    Q5.4: Can I do heavy - duty data processing with gnuplot?
  735.           Gnuplot alone is not suited very well for this. One thing you
  736.           might try is fudgit, an interactive multi-purpose fitting
  737.           program written by Martin-D. Lacasse
  738.           (isaac@frodo.physics.mcgill.ca). It can use gnuplot as its
  739.           graphics back end and is available from ftp.physics.mcgill.ca
  740.           in /pub/Fudgit/fudgit_2.33.tar.Z [132.206.9.13], and from the
  741.           main Linux server, tsx-11.mit.edu [18.172.1.2] and its numerous
  742.           mirrors around the world as
  743.           /pub/linux/sources/usr.bin/fudgit-2.33.tar.z. Versions are
  744.           available for AIX, Data General, HP-UX, IRIX 4, Linux, NeXT,
  745.           Sun3, Sun4, Ultrix, OS/2 and MS-DOS. The MS-DOS version is
  746.           available on simtel20 mirrors (simtel20 itself has closed down)
  747.           in the "math" subdirectory as fudg_231.zip.
  748.  
  749.           Carsten Grammes has written a fitting program which goes
  750.           together with gnuplot; it is called gnufit and is available
  751.           from the official gnuplot sites, as the files gnufit12.info,
  752.           gnufit12.tar.gz (source) and gft12dos.zip (MS-DOS).
  753.  
  754.           Michael Courtney has written a program called lsqrft, which
  755.           uses the Levenberg - Marquardt - Algorithm for fitting data to
  756.           a function. It is avialiable from ftp.cdrom.com as
  757.           /pub/os2/2_x/unix/lsqrft13.zip; sources, which should compile
  758.           on Unix, and executables for MS-DOS and OS/2 2.x are included.
  759.           There is an interface to the OS/2 presentation manager.
  760.  
  761.           You might also want to look at the applications developed by
  762.           the Software Tools Group (STG) at the National Center for
  763.           Supercomputing Applications. Ftp to ftp.ncsa.uiuc.edu
  764.           [141.142.20.50] and get the file README.BROCHURE for more
  765.           information.
  766.  
  767.    Q5.5: I have ported gnuplot to another system, or patched it. What do
  768.           I do?
  769.           If your patch is small, mail it to bug-gnuplot@dartmouth.edu,
  770.           with a thorough description of what the patch is supposed to
  771.           do, which version of gnuplot it is relative to, etc. Also, you
  772.           can send notification of the patch to the FAQ maintainer, if
  773.           you want a mention. Please don't send the patch itself to me
  774.           :-)
  775.  
  776.           If your modifications are extensive (such as a port to another
  777.           system), upload your modifications to
  778.           ftp.dartmouth.edu:/pub/dropoff. Please drop a note to
  779.           David.Kotz@dartmouth.edu, the maintainer of the gnuplot
  780.           subdirectory there, plus a note to bug-gnuplot@dartmouth.edu.
  781.  
  782.  
  783.      _________________________________________________________________
  784.  
  785.   SECTION 6: MAKING LIFE EASIER
  786.  
  787.     Q6.1: How do I plot two functions in non - overlapping regions?
  788.           Use a parametric plot. An example:
  789.  
  790.  
  791.         set parametric
  792.         a=1
  793.         b=3
  794.         c=2
  795.         d=4
  796.         x1(t) = a+(b-a)*t
  797.         x2(t) = c+(d-c)*t
  798.         f1(x) = sin(x)
  799.         f2(x) = x**2/8
  800.         plot [t=0:1] x1(t),f1(x1(t)) title "f1", x2(t), f2(x2(t)) title "f2"
  801.  
  802.    Q6.2: How do I run my data through a filter before plotting?
  803.           If your system supports the popen() - function, as Unix does,
  804.           you should be able to run the output through another process
  805.           such as a short awk program (use the "help plot datafile"
  806.           command for an example). Unfortunately, in 3.2, there is a
  807.           rather short limitation on the maximum argument length, so your
  808.           command line may be truncated (usually, this will mean that awk
  809.           cannot find the filename). Also, you may need to escape the $ -
  810.           characters in your awk programs.
  811.  
  812.           As of version 3.4, gnuplot includes the thru - keyword for the
  813.           plot command for running data files through a gnuplot - defined
  814.           function.
  815.  
  816.           You can also get divhack.patch from
  817.           sotona.phys.soton.ac.uk[152.78.192.42] via anonymous ftp. It
  818.           allows expressions of the kind
  819.  
  820.  
  821.         gnuplot> plot "datafile" using A:B:C
  822.  
  823.    where A,B,C,... are now either a column number, as usual, or an
  824.           arbitrary expression enclosed in ()'s, and using $1,$2,etc to
  825.           access the data columns.
  826.  
  827.    Q6.3: How do I make it easier to use gnuplot with LaTeX?
  828.           There is a set of LaTeX macros and shell scripts that are meant
  829.           to make your life easier when using gnuplot with LaTeX. This
  830.           package can be found on ftp.dartmouth.edu [129.170.16.54] in
  831.           pub/gnuplot/latex.shar, by David Kotz. For example, the program
  832.           "plotskel" can turn a gnuplot-output file plot.tex into a
  833.           skeleton file skel.tex, that has the same size as the original
  834.           plot but contains no graph. With the right macros, the skeleton
  835.           can be used for preliminary LaTeX passes, reserving the full
  836.           graph for later passes, saving tremendous amounts of time.
  837.  
  838.    Q6.4: How do I save and restore my settings?
  839.           Use the "save" and "load" commands for this; see "help save"
  840.           and "help load" for details.
  841.  
  842.    Q6.5: How do I plot lines (not grids) using splot?
  843.           If the data in a data file for splot is arranged in such a way
  844.           that each one has the same number of data points (using blank
  845.           lines as delimiters, as usual), splot will plot the data with a
  846.           grid. If you want to plot just lines, use a different number of
  847.           data entries (you can do this by doubling the last data point,
  848.           for example). Don't forget to set parametric mode, of course.
  849.  
  850.    Q6.6: How do I plot a function f(x,y) which is bounded by other
  851.           functions in the x-y plain?
  852.           An example:
  853.  
  854.  
  855.         f(x,y) = x**2 + y **2
  856.         x(u) = 3*u
  857.         yu(x) = x**2
  858.         yl(x) = -x**2
  859.         set parametric
  860.         set cont
  861.         splot [0:1] [0:1] u,yl(x(u))+(yu(x(u)) - yl(x(u)))*v,\
  862.         f(x(u), (yu(x(u)) - yl(x(u)))*v)
  863.  
  864.    Q6.7: How do I get rid of <feature in a plot>?
  865.           Usually, there is a set command to do this; do a
  866.  
  867.  
  868.         gnuplot> ?set no
  869.  
  870.    for a short overview.
  871.  
  872.    Q6.8: How do I call gnuplot from my own programs?
  873.           Here's code which works for a UNIX system, using (efficient)
  874.           named pipes.
  875.  
  876.  
  877. #include <sys/types.h>
  878. #include <sys/stat.h>
  879. #include <stdlib.h>
  880. #include <stdio.h>
  881. #include <math.h>
  882. #include <unistd.h>
  883.  
  884. #define PANIC(a) do { \
  885.                 perror(a); \
  886.                 if (temp_name) unlink(temp_name);\
  887.                 exit(1);\
  888.         } while(0)
  889.  
  890. int main() {
  891.     FILE *command,*data;
  892.     char *temp_name;
  893.     double a,b;
  894.     int i;
  895.  
  896.     if ((temp_name = tmpnam((char *) 0)) == 0) PANIC("tmpnam failed");
  897.     if(mkfifo(temp_name, S_IRUSR | S_IWUSR) != 0) PANIC("mkfifo failed");
  898.     command = popen("gnuplot","w");
  899.     fprintf(command,"plot \"%s\" with lines\n",temp_name); fflush(command);
  900.     data = fopen(temp_name,"w");
  901.     for (i=0; i<20; i++) {
  902.         a = i/10.0;
  903.         b = sin(a);
  904.         fprintf(data,"%f %f\n",a,b);
  905.     }
  906.     fclose(data);
  907.     fprintf(stderr,"press enter to continue..."); fflush(stderr);
  908.     getchar();
  909.  
  910.     fprintf(command,"plot \"%s\" with lines\n",temp_name); fflush(command);
  911.     data = fopen(temp_name,"w");
  912.     for (i=0; i<20; i++) {
  913.         a = i/10.0;
  914.         b = cos(a);
  915.         fprintf(data,"%f %f\n",a,b);
  916.     }
  917.     fclose(data);
  918.     fprintf(stderr,"press enter to continue..."); fflush(stderr);
  919.     getchar();
  920.     fclose(command);
  921.     unlink(temp_name);
  922.     return 0;
  923. }
  924.  
  925.    Here's code for OS/2, again using named pipes; I'm unable to check
  926.           this out myself. This code is care of fearick@physci.uct.ac.za
  927.           (Roger Fearick).
  928.  
  929.  
  930. #include <stdio.h>
  931. #define INCL_DOS
  932. #define INCL_DOSPROCESS
  933. #define INCL_DOSNMPIPES
  934. #include <os2.h>
  935.  
  936. main()
  937.     {
  938.     HPIPE hpipe ;
  939.     FILE *hfile, *hgnu ;
  940.         /* create a named pipe. Use NP_WAIT so that DosConnect...
  941.            blocks until client (gnuplot) opens, and client reads
  942.            are blocked until data is available */
  943.     DosCreateNPipe( "\\pipe\\gtemp",
  944.                     &hpipe,
  945.                     NP_ACCESS_OUTBOUND,
  946.                     NP_WAIT|NP_TYPE_BYTE|1,
  947.                     256,
  948.                     256,
  949.                     -1 ) ;
  950.         /* use stream i/o */
  951.     hfile = fdopen( hpipe, "w" ) ;
  952.  
  953.         /* start gnuplot; use unbuffered writes so we don't need to
  954.            flush buffer after a command */
  955.     hgnu = popen( "gnuplot", "w" ) ;
  956.     setvbuf( hgnu, NULL, _IONBF, 0 ) ;
  957.  
  958.         /* plot a set of data */
  959.  
  960.     fprintf( hgnu, "plot '/pipe/gtemp'\n" ) ;  /* issue plot command */
  961.     DosConnectNPipe( hpipe ) ;              /* wait until 'file' opened */
  962.     fprintf( hfile, "1 1\n" ) ;             /* write data to 'file' */
  963.     fprintf( hfile, "2 2\n" ) ;
  964.     fprintf( hfile, "3 3\n" ) ;
  965.     fprintf( hfile, "4 4\n" ) ;
  966.     fflush( hfile ) ;                       /* flush buffer forces read */
  967.     DosSleep( 500 ) ;                       /* allow gnuplot to catch up */
  968.     DosDisConnectNPipe( hpipe ) ;           /* disconnect this session */
  969.     fprintf( hgnu, "pause -1\n" ) ;         /* admire plot */
  970.  
  971.         /* plot another set of data */
  972.  
  973.     fprintf( hgnu, "plot '/pipe/gtemp'\n" ) ;
  974.     DosConnectNPipe( hpipe ) ;
  975.     fprintf( hfile, "1 4\n" ) ;
  976.     fprintf( hfile, "2 3\n" ) ;
  977.     fprintf( hfile, "3 2\n" ) ;
  978.     fprintf( hfile, "4 1\n" ) ;
  979.     fflush( hfile ) ;
  980.     DosSleep( 500 ) ;
  981.     DosDisConnectNPipe( hpipe ) ;
  982.     fprintf( hgnu, "pause -1\n" ) ;
  983.  
  984.     DosClose( hpipe ) ;
  985.     pclose( hgnu ) ;
  986.     }
  987.  
  988.    ;
  989.  
  990.  
  991.      _________________________________________________________________
  992.  
  993.   SECTION 7: KNOWN PROBLEMS
  994.  
  995.     Q7.1: Gnuplot is not plotting any points under X11! How come?
  996.           Very probably, you still are using an old version of
  997.           gnuplot_x11. Remove that, then do a full installation.
  998.  
  999.           On VMS, you need to make several symbols:
  1000.  
  1001.  
  1002.         $ gnuplot_x11 :== $disk:[directory]gnuplot_x11
  1003.         $ gnuplot :== $disk:[directory]gnuplot.exe
  1004.         $ def/job GNUPLOT$HELP disk:[directory]gnuplot.hlb
  1005.  
  1006.    Then run gnuplot from your command line, and use
  1007.  
  1008.  
  1009.         gnuplot> set term x11
  1010.  
  1011.    Q7.2: My isoline data generated by a Fortran program is not handled
  1012.           correctly. What can I do?
  1013.           One known cause for this is the use of list - directed output
  1014.           (as in WRITE(10,*) for generating blank lines. Fortran uses ASA
  1015.           carriage control characters, and for list - directed output
  1016.           this results in a space being output before the newline.
  1017.           Gnuplot does not like this. The solution is to generate blank
  1018.           lines using formatted output, as in WRITE(10,'()'). If you use
  1019.           carriage return files in VMS Fortran, you may have to open the
  1020.           file with OPEN(...,CARRIAGECONTROL='DTST') or convert it using
  1021.           the DECUS utility ATTRIB.EXE:
  1022.  
  1023.  
  1024.         VMS> ATTRIB/RATTRIB=IMPDTED FOR010.DAT
  1025.  
  1026.    Q7.3: Why does gnuplot ignore my very small numbers?
  1027.           Gnuplot treats all numbers less than 1e-08 as zero, by default.
  1028.           Thus, if you are trying to plot a collection of very small
  1029.           numbers, they may be plotted as zero. Worse, if you're plotting
  1030.           on a log scale, they will be off scale. Or, if the whole set of
  1031.           numbers is "zero", your range may be considered empty:
  1032.  
  1033.  
  1034.         gnuplot> plot 'test1'
  1035.         Warning: empty y range [4.047e-19:3e-11], adjusting to [-1:1]
  1036.         gnuplot> set yrange [4e-19:3e-11]
  1037.         gnuplot> plot 'test1'
  1038.                      ^
  1039.          y range is less than `zero`
  1040.  
  1041.    The solution is to change gnuplot's idea of "zero":
  1042.  
  1043.  
  1044.         gnuplot> set zero 1e-20
  1045.  
  1046.    For more information,
  1047.  
  1048.  
  1049.         gnuplot> help set zero
  1050.  
  1051.    Q7.4: Gnuplot is plotting nothing when run via gnuplot <filename>!
  1052.           What can I do?
  1053.           Put a pause -1 after the plot command in the file.
  1054.  
  1055.    Q7.5: My formulas are giving me nonsense results! What's going on?
  1056.           Gnuplot does integer, and not floating point, arithmetic on
  1057.           integer expressions. For example, the expression 1/3 evaluates
  1058.           to zero. If you want floating point expressions, supply
  1059.           trailing dots for your floating point numbers. Example:
  1060.  
  1061.  
  1062.         gnuplot> print 1/3
  1063.                 0
  1064.         gnuplot> print 1./3.
  1065.                 0.333333
  1066.  
  1067.    This way of evaluating integer expressions is shared by both C and
  1068.           Fortran.
  1069.  
  1070.    Q7.6: My Linux gnuplot complains about a missing gnuplot_x11. What is
  1071.    wrong?       The binary gnuplot distribution from sunsite.unc.edu and
  1072.    its mirrors in Linux/apps/math/gplotbin.tgz is missing one executable
  1073.    that is necessary to access the x11 terminal. Please install gnuplot
  1074.    from another Linux distribution, e.g. Slackware.
  1075.      _________________________________________________________________
  1076.  
  1077.    Section 8: Credits
  1078.  
  1079.   SECTION 8: CREDITS
  1080.  
  1081.    This list was initially compiled by John Fletcher with contributions
  1082.    from Russell Lang, John Campbell, David Kotz, Rob Cunningham, Daniel
  1083.    Lewart and Alex Woo. Reworked by Thomas Koenig from a draft by Alex
  1084.    Woo, with corrections and additions from Alex Woo, John Campbell,
  1085.    Russell Lang, David Kotz and many corrections from Daniel Lewart; Axel
  1086.    Eble and Jutta Zimmermann helped with the conversion to HTML.
  1087.  
  1088.  
  1089.      _________________________________________________________________
  1090.  
  1091.     Thomas Koenig, ig25@rz.uni-karlsruhe.de, 1994-03-28
  1092. -- 
  1093. Thomas Koenig, Thomas.Koenig@ciw.uni-karlsruhe.de, ig25@dkauni2.bitnet.
  1094. The joy of engineering is to find a straight line on a double
  1095. logarithmic diagram.
  1096.