<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!--Converted with LaTeX2HTML 2002-2-1 (1.70) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Gnuplot FAQ</TITLE> <META NAME="description" CONTENT="Gnuplot FAQ"> <META NAME="keywords" CONTENT="faq"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="faq.css"> </HEAD> <BODY > <H1 ALIGN="CENTER"><SPAN CLASS="textbf">Gnuplot</SPAN> FAQ</H1> <DIV CLASS="author_info"> </DIV> <P> <BR> <H2><A NAME="SECTION00010000000000000000"> Contents</A> </H2> <!--Table of Contents--> <UL CLASS="TofC"> <LI><A NAME="tex2html170" HREF="faq.html#SECTION00020000000000000000">0 Meta - Questions</A> <UL> <LI><A NAME="tex2html171" HREF="faq.html#SECTION00021000000000000000">0.1 Where do I get this document?</A> <LI><A NAME="tex2html172" HREF="faq.html#SECTION00022000000000000000">0.2 Where do I send comments about this document?</A> </UL> <BR> <LI><A NAME="tex2html173" HREF="faq.html#SECTION00030000000000000000">1 General Information</A> <UL> <LI><A NAME="tex2html174" HREF="faq.html#SECTION00031000000000000000">1.1 What is gnuplot?</A> <LI><A NAME="tex2html175" HREF="faq.html#SECTION00032000000000000000">1.2 How did it come about and why is it called gnuplot?</A> <LI><A NAME="tex2html176" HREF="faq.html#SECTION00033000000000000000">1.3 Does gnuplot have anything to do with the FSF and the GNU project?</A> <LI><A NAME="tex2html177" HREF="faq.html#SECTION00034000000000000000">1.4 What does gnuplot offer?</A> <LI><A NAME="tex2html178" HREF="faq.html#SECTION00035000000000000000">1.5 Is gnuplot suitable for batch processing?</A> <LI><A NAME="tex2html179" HREF="faq.html#SECTION00036000000000000000">1.6 Can I run gnuplot on my computer?</A> <LI><A NAME="tex2html180" HREF="faq.html#SECTION00037000000000000000">1.7 Legalize it!</A> <LI><A NAME="tex2html181" HREF="faq.html#SECTION00038000000000000000">1.8 Is gnuplot Y2K compliant?</A> <LI><A NAME="tex2html182" HREF="faq.html#SECTION00039000000000000000">1.9 Where do I get further information?</A> </UL> <BR> <LI><A NAME="tex2html183" HREF="faq.html#SECTION00040000000000000000">2 Setting it up</A> <UL> <LI><A NAME="tex2html184" HREF="faq.html#SECTION00041000000000000000">2.1 What is the current version of gnuplot?</A> <LI><A NAME="tex2html185" HREF="faq.html#SECTION00042000000000000000">2.2 Where can I get gnuplot?</A> <LI><A NAME="tex2html186" HREF="faq.html#SECTION00043000000000000000">2.3 How do I get gnuplot to compile on my system?</A> <LI><A NAME="tex2html187" HREF="faq.html#SECTION00044000000000000000">2.4 What documentation is there, and how do I get it?</A> </UL> <BR> <LI><A NAME="tex2html188" HREF="faq.html#SECTION00050000000000000000">3 Working with it.</A> <UL> <LI><A NAME="tex2html189" HREF="faq.html#SECTION00051000000000000000">3.1 How do I get help?</A> <LI><A NAME="tex2html190" HREF="faq.html#SECTION00052000000000000000">3.2 How do I print out my graphs?</A> <LI><A NAME="tex2html191" HREF="faq.html#SECTION00053000000000000000">3.3 How do I include my graphs in <word processor>?</A> <LI><A NAME="tex2html192" HREF="faq.html#SECTION00054000000000000000">3.4 How do I post-process a gnuplot graph?</A> <LI><A NAME="tex2html193" HREF="faq.html#SECTION00055000000000000000">3.5 How do I change symbol size, line thickness and the like?</A> <LI><A NAME="tex2html194" HREF="faq.html#SECTION00056000000000000000">3.6 How do I generate plots in the GIF format?</A> <LI><A NAME="tex2html195" HREF="faq.html#SECTION00057000000000000000">3.7 Can I animate my graphs?</A> <LI><A NAME="tex2html196" HREF="faq.html#SECTION00058000000000000000">3.8 How do I plot implicit defined graphs?</A> </UL> <BR> <LI><A NAME="tex2html197" HREF="faq.html#SECTION00060000000000000000">4 Wanted features</A> <UL> <LI><A NAME="tex2html198" HREF="faq.html#SECTION00061000000000000000">4.1 What's new in gnuplot 3.7?</A> <LI><A NAME="tex2html199" HREF="faq.html#SECTION00062000000000000000">4.2 Does gnuplot have hidden line removal?</A> <LI><A NAME="tex2html200" HREF="faq.html#SECTION00063000000000000000">4.3 Does gnuplot support bar-charts/histograms/boxes?</A> <LI><A NAME="tex2html201" HREF="faq.html#SECTION00064000000000000000">4.4 Does gnuplot support pie charts?</A> <LI><A NAME="tex2html202" HREF="faq.html#SECTION00065000000000000000">4.5 Does gnuplot quarterly time charts?</A> <LI><A NAME="tex2html203" HREF="faq.html#SECTION00066000000000000000">4.6 Does gnuplot support multiple y-axes on a single plot?</A> <LI><A NAME="tex2html204" HREF="faq.html#SECTION00067000000000000000">4.7 Can I put multiple pages on one page?</A> <LI><A NAME="tex2html205" HREF="faq.html#SECTION00068000000000000000">4.8 Can I put both data files and commands into a single file?</A> <LI><A NAME="tex2html206" HREF="faq.html#SECTION00069000000000000000">4.9 Can I put Greek letters and super/subscripts into my labels?</A> <LI><A NAME="tex2html207" HREF="faq.html#SECTION000610000000000000000">4.10 Can I do 1:1 scaling of axes?</A> <LI><A NAME="tex2html208" HREF="faq.html#SECTION000611000000000000000">4.11 Can I put tic marks for x and y axes into 3d plots?</A> <LI><A NAME="tex2html209" HREF="faq.html#SECTION000612000000000000000">4.12 Does gnuplot support a driver for <graphics format>?</A> <LI><A NAME="tex2html210" HREF="faq.html#SECTION000613000000000000000">4.13 Can I put different text sizes into my plots?</A> <LI><A NAME="tex2html211" HREF="faq.html#SECTION000614000000000000000">4.14 How do I modify gnuplot, and apply 'patches'?</A> <LI><A NAME="tex2html212" HREF="faq.html#SECTION000615000000000000000">4.15 How do I skip data points?</A> <LI><A NAME="tex2html213" HREF="faq.html#SECTION000616000000000000000">4.16 How do I plot every nth point?</A> <LI><A NAME="tex2html214" HREF="faq.html#SECTION000617000000000000000">4.17 How do I plot a vertical line?</A> <LI><A NAME="tex2html215" HREF="faq.html#SECTION000618000000000000000">4.18 How do I plot data files </A> <LI><A NAME="tex2html216" HREF="faq.html#SECTION000619000000000000000">4.19 How do I include accentuated characters in Postscript output?</A> </UL> <BR> <LI><A NAME="tex2html217" HREF="faq.html#SECTION00070000000000000000">5 Miscellaneous</A> <UL> <LI><A NAME="tex2html218" HREF="faq.html#SECTION00071000000000000000">5.1 I've found a bug, what do I do?</A> <LI><A NAME="tex2html219" HREF="faq.html#SECTION00072000000000000000">5.2 Can I use gnuplot routines for my own programs?</A> <LI><A NAME="tex2html220" HREF="faq.html#SECTION00073000000000000000">5.3 What extensions have people made to gnuplot? Where can I get them?</A> <LI><A NAME="tex2html221" HREF="faq.html#SECTION00074000000000000000">5.4 I need an integration, fft, iir-filter,....!</A> <LI><A NAME="tex2html222" HREF="faq.html#SECTION00075000000000000000">5.5 Can I do heavy-duty data processing with gnuplot? or What is beyond gnuplot?</A> <LI><A NAME="tex2html223" HREF="faq.html#SECTION00076000000000000000">5.6 I have ported gnuplot to another system, or patched it. What do I do?</A> <LI><A NAME="tex2html224" HREF="faq.html#SECTION00077000000000000000">5.7 I want to help in developing the next version of gnuplot. What can I do?</A> <LI><A NAME="tex2html225" HREF="faq.html#SECTION00078000000000000000">5.8 Open questions for inclusion into the FAQ?</A> </UL> <BR> <LI><A NAME="tex2html226" HREF="faq.html#SECTION00080000000000000000">6 Making life easier</A> <UL> <LI><A NAME="tex2html227" HREF="faq.html#SECTION00081000000000000000">6.1 How do I plot two functions in non-overlapping regions?</A> <LI><A NAME="tex2html228" HREF="faq.html#SECTION00082000000000000000">6.2 How do I run my data through a filter before plotting?</A> <LI><A NAME="tex2html229" HREF="faq.html#SECTION00083000000000000000">6.3 How do I make it easier to use gnuplot with L<SUP>A</SUP>TEX?</A> <LI><A NAME="tex2html230" HREF="faq.html#SECTION00084000000000000000">6.4 How do I save and restore my settings?</A> <LI><A NAME="tex2html231" HREF="faq.html#SECTION00085000000000000000">6.5 How do I plot lines (not grids) using splot?</A> <LI><A NAME="tex2html232" HREF="faq.html#SECTION00086000000000000000">6.6 How do I plot a function f(x,y) which is bounded by other functions in the x-y plain?</A> <LI><A NAME="tex2html233" HREF="faq.html#SECTION00087000000000000000">6.7 How do I get rid of <feature> in a plot?</A> <LI><A NAME="tex2html234" HREF="faq.html#SECTION00088000000000000000">6.8 How do I call gnuplot from my own programs?</A> <LI><A NAME="tex2html235" HREF="faq.html#SECTION00089000000000000000">6.9 What if I need h-bar (Planck's constant)?</A> </UL> <BR> <LI><A NAME="tex2html236" HREF="faq.html#SECTION00090000000000000000">7 Known Problems</A> <UL> <LI><A NAME="tex2html237" HREF="faq.html#SECTION00091000000000000000">7.1 Gnuplot is not plotting any points under X11! How come?</A> <LI><A NAME="tex2html238" HREF="faq.html#SECTION00092000000000000000">7.2 My isoline data generated by a Fortran program is not handled correctly. What can I do?</A> <LI><A NAME="tex2html239" HREF="faq.html#SECTION00093000000000000000">7.3 Why does gnuplot ignore my very small numbers?</A> <LI><A NAME="tex2html240" HREF="faq.html#SECTION00094000000000000000">7.4 Gnuplot is plotting nothing when run via gnuplot <filename>! What can I do?</A> <LI><A NAME="tex2html241" HREF="faq.html#SECTION00095000000000000000">7.5 My formulas are giving me nonsense results! What's going on?</A> <LI><A NAME="tex2html242" HREF="faq.html#SECTION00096000000000000000">7.6 Set output 'filename' isn't outputting everything it should!</A> <LI><A NAME="tex2html243" HREF="faq.html#SECTION00097000000000000000">7.7 When using the L<SUP>A</SUP>TEX-terminal, there is an error during the L<SUP>A</SUP>TEX-run!</A> <LI><A NAME="tex2html244" HREF="faq.html#SECTION00098000000000000000">7.8 The exit command does not work as documented!</A> <LI><A NAME="tex2html245" HREF="faq.html#SECTION00099000000000000000">7.9 I can't find the demos and example files at the URLs in the documentation!</A> <LI><A NAME="tex2html246" HREF="faq.html#SECTION000910000000000000000">7.10 Calling gnuplot in a pipe or with a gnuplot-script doesn't produce a plot!</A> </UL> <BR> <LI><A NAME="tex2html247" HREF="faq.html#SECTION000100000000000000000">8 Credits</A> </UL> <!--End of Table of Contents--> <P> <H1><A NAME="SECTION00020000000000000000"> <SPAN CLASS="arabic">0</SPAN> Meta - Questions</A> </H1> <H2><A NAME="SECTION00021000000000000000"> <SPAN CLASS="arabic">0</SPAN>.<SPAN CLASS="arabic">1</SPAN> Where do I get this document?</A> </H2> This document is posted about once every two weeks to the newsgroups ~<A NAME="tex2html1" HREF="news:comp.graphics.apps.gnuplot"><TT>comp.graphics.apps.gnuplot</TT></A>. Its newest (plaintext) version is available via anonymous ftp from <A NAME="tex2html2" HREF="ftp://ftp.gnuplot.info/pub/gnuplot/faq/faq.txt"><TT>ftp.gnuplot.info</TT> in <TT>/pub/gnuplot/faq/faq.txt</TT></A>. <P> If you have access to the WWW, you can get the newest version of this document from <A NAME="tex2html3" HREF="http://www.ucc.ie/gnuplot/faq.html"><TT>http://www.ucc.ie/gnuplot/faq.html</TT></A>. <P> Today's version is version <code>$Revision: 1.1.1.1 $</code>, dated <code>$Date: 2002/12/07 18:33:30 $</code> <P> <H2><A NAME="SECTION00022000000000000000"> <SPAN CLASS="arabic">0</SPAN>.<SPAN CLASS="arabic">2</SPAN> Where do I send comments about this document?</A> </H2> <P> Send comments, suggestions etc via email to the developer mailing list <A NAME="tex2html4" HREF="mailto:info-gnuplot-beta@Dartmouth.EDU"><TT>info-gnuplot-beta@Dartmouth.EDU</TT></A>. <P> <H1><A NAME="SECTION00030000000000000000"> <SPAN CLASS="arabic">1</SPAN> General Information</A> </H1> <P> <H2><A NAME="SECTION00031000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">1</SPAN> What is <SPAN CLASS="textbf">gnuplot</SPAN>?</A> </H2> <P> <SPAN CLASS="textbf">gnuplot</SPAN> is a command-driven interactive function plotting program. It can be used to plot functions and data points in both two- and three-dimensional plots in many different formats, and will accommodate many of the needs of today's scientists for graphic data representation. <SPAN CLASS="textbf">gnuplot</SPAN> is copyrighted, but freely distributable; you don't have to pay for it. <P> This document deals with <SPAN CLASS="textbf">gnuplot</SPAN> Version 3.7 which is the latest official release as of January 13, 2003. References to bug-fix versions or (recent) beta versions are explicitly marked. <P> <H2><A NAME="SECTION00032000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">2</SPAN> How did it come about and why is it called <SPAN CLASS="textbf">gnuplot</SPAN>?</A> </H2> <P> The authors of <SPAN CLASS="textbf">gnuplot</SPAN> are: Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John Campbell, Gershon Elber, Alexander Woo and many others. <P> The following quote comes from Thomas Williams: <BLOCKQUOTE> I was taking a differential equation class and Colin was taking Electromagnetics, we both thought it'd be helpful to visualize the mathematics behind them. We were both working as sys admin for an EE VLSI lab, so we had the graphics terminals and the time to do some coding. The posting was better received than we expected, and prompted us to add some, albeit lame, support for file data. </BLOCKQUOTE> <P> <BLOCKQUOTE>Any reference to GNUplot is incorrect. The real name of the program is "<SPAN CLASS="textbf">gnuplot</SPAN>". You see people use "<SPAN CLASS="textbf">gnuplot</SPAN>" quite a bit because many of us have an aversion to starting a sentence with a lower case letter, even in the case of proper nouns and titles. <SPAN CLASS="textbf">gnuplot</SPAN> is not related to the GNU project or the FSF in any but the most peripheral sense. Our software was designed completely independently and the name "<SPAN CLASS="textbf">gnuplot</SPAN>" was actually a compromise. I wanted to call it "llamaplot" and Colin wanted to call it "nplot." We agreed that "newplot" was acceptable but, we then discovered that there was an absolutely ghastly pascal program of that name that the Computer Science Dept. occasionally used. I decided that "<SPAN CLASS="textbf">gnuplot</SPAN>" would make a nice pun and after a fashion Colin agreed. </BLOCKQUOTE> <P> <H2><A NAME="SECTION00033000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">3</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> have anything to do with the FSF and the GNU project?</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> is neither written nor maintained by the FSF. It is not covered by the General Public License, either. It used to be distributed by the FSF, however, due to licensing issues it is no longer. <P> <SPAN CLASS="textbf">Gnuplot</SPAN> is freeware in the sense that you don't have to pay for it. However it is not freeware in the sense that you would be allowed to distribute a modified version of your <SPAN CLASS="textbf">gnuplot</SPAN> freely. Please read and accept the <TT>Copyright</TT> file in your distribution. <P> <H2><A NAME="SECTION00034000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">4</SPAN> What does <SPAN CLASS="textbf">gnuplot</SPAN> offer?</A> </H2> <P> <UL> <LI>Plotting of two-dimensional functions and data points in many different styles (points, lines, error bars) </LI> <LI>computations in integer, float and complex arithmetic </LI> <LI>plotting of three-dimensional data points and surfaces in many different styles (contour plot, mesh). </LI> <LI>support for complex arithmetic </LI> <LI>self - defined functions </LI> <LI>support for a large number of operating systems, graphics file formats and devices </LI> <LI>extensive on-line help </LI> <LI>labels for title, axes, data points </LI> <LI>command line editing and history on most platforms </LI> </UL> <P> <H2><A NAME="SECTION00035000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">5</SPAN> Is <SPAN CLASS="textbf">gnuplot</SPAN> suitable for batch processing?</A> </H2> <P> Yes. You can read in files from the command line, or you can redirect your standard input to read from a file. Both data and command files can be generated automatically, from data acquisition programs or whatever else you use. <P> <H2><A NAME="SECTION00036000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">6</SPAN> Can I run <SPAN CLASS="textbf">gnuplot</SPAN> on my computer?</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> is available for a number of platforms. These are: Unix (X11 and NeXTSTEP), VAX/VMS, OS/2, MS-DOS, Amiga, MS-Windows, OS-9/68k, Atari ST, BeOS, and the Macintosh. <P> Please notify the FAQ-maintainer of any further ports you might be aware of. <P> You should be able to compile the <SPAN CLASS="textbf">gnuplot</SPAN> source more or less out of the box on any reasonable standard (ANSI/ISO C, POSIX) environment. <P> <H2><A NAME="SECTION00037000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">7</SPAN> Legalize it!</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> is freeware authored by a collection of volunteers, who cannot make any legal statement about the compliance or non-compliance of <SPAN CLASS="textbf">gnuplot</SPAN> or its uses. There is also no warranty whatsoever. Use at your own risk. <P> Citing from the README of a mathematical subroutine package by R. Freund: <P> <BLOCKQUOTE> For all intent and purpose, any description of what the codes are doing should be construed as being a note of what we thought the codes did on our machine on a particular Tuesday of last year. If you're really lucky, they might do the same for you someday. Then again, do you really feel *that* lucky? </BLOCKQUOTE> <P> <H2><A NAME="SECTION00038000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">8</SPAN> Is <SPAN CLASS="textbf">gnuplot</SPAN> Y2K compliant?</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN>'s compliance depends in part on the compliance of the underlying operating system and hardware. The only use <SPAN CLASS="textbf">gnuplot</SPAN> makes of a system- supplied date is in the "set timestamp" command, which simply echos the date on the plot. If the underlying OS cannot produce an accurate time string, then the "set timestamp" command may fail to print the correct date on plots. <P> In <SPAN CLASS="textbf">gnuplot</SPAN> 3.5, if the user chooses to use %y in a timestamp format, rather than %Y, it will print 2-digit rather than 4-digit years. The effects depend on the importance you place on the timestamps printed on plots. <P> <SPAN CLASS="textbf">Gnuplot</SPAN> 3.7 also allows the use of time/date data as variables, but the user has complete control over the input format of the data and the output format of the tic labels - the same 2-digit "%y" (interpreted as 1900+) and 4-digit "%Y" formats are both available. But again, these are user-specifiable, so if there is a Y2K problem here, it is the responsibility of the user. <P> Of course, <SPAN CLASS="textbf">gnuplot</SPAN> is built by executing a makefile, which may well be date-dependent. So if the operating system has a Y2K problem, the process of building a new executable of <SPAN CLASS="textbf">gnuplot</SPAN> may be affected. But that wouldn't be a problem with <SPAN CLASS="textbf">gnuplot</SPAN> per se. <P> <SPAN CLASS="textbf">IMPORTANT NOTICE</SPAN> <P> As of <SPAN CLASS="textbf">gnuplot</SPAN> beta version 3.7.0.9, the interpretation of the "%y" two digit year specifier was changed in accordance with the recommendations of The Open Group and all major Unix vendors. When a century is not otherwise specified, values in the range 69-99 refer to the twentieth century and values in the range 00-68 refer to the twenty-first century. Be very careful when interpreting 2-digit year expressions. <P> <H2><A NAME="SECTION00039000000000000000"> <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">9</SPAN> Where do I get further information?</A> </H2> <P> The following sites have more information about <SPAN CLASS="textbf">gnuplot</SPAN>. <P> <UL> <LI><A NAME="tex2html5" HREF="http://www.comnets.rwth-aachen.de/doc/gnu/gnuplot37/gnuplot.html"><TT>http://www.comnets.rwth-aachen.de/doc/gnu/gnuplot37/gnuplot.html</TT></A> an online documentation in html-format </LI> <LI><A NAME="tex2html6" HREF="http://www.usf.uni-osnabrueck.de/~breiter/tools/gnuplot/index.en.html"><TT>http://www.usf.uni-osnabrueck.de/ breiter/tools/gnuplot/index.en.html</TT></A> has many links to many features and add-ons for <SPAN CLASS="textbf">gnuplot</SPAN> </LI> <LI><A NAME="tex2html7" HREF="http://web.cs.uni.edu/Help/gnuplot/"><TT>http://web.cs.uni.edu/Help/gnuplot/</TT></A> contains an online tutorial </LI> <LI><A NAME="tex2html8" HREF="http://brian.me.tufts.edu/GnuplotInLaTeX/"><TT>http://brian.me.tufts.edu/GnuplotInLaTeX/</TT></A> contains infos abount <SPAN CLASS="textbf">gnuplot</SPAN> and <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> </LI> <LI><A NAME="tex2html9" HREF="http://ndevilla.free.fr/gnuplot/"><TT>http://ndevilla.free.fr/gnuplot/</TT></A> explains the use of a <SPAN CLASS="textbf">gnuplot</SPAN> API in ANSI C (commonly known as gnuplot_pipes </LI> <LI><A NAME="tex2html10" HREF="http://ricardo.ecn.wfu.edu/~cottrell/qplot/"><TT>http://ricardo.ecn.wfu.edu/ cottrell/qplot/</TT></A> on how to plot quarterly time data </LI> <LI><A NAME="tex2html11" HREF="http://monsoon.harvard.edu/~mhagger/download"><TT>http://monsoon.harvard.edu/ mhagger/download</TT></A> a Python interface for <SPAN CLASS="textbf">gnuplot</SPAN> </LI> <LI><A NAME="tex2html12" HREF="ftp://ftp.thewrittenword.com/free/by-package/"><TT>ftp.thewrittenword.com</TT> in <TT>/free/by-package/</TT></A> contains Solaris, IRIX, HP-UX and Digital Unix binaries </LI> <LI><A NAME="tex2html13" HREF="http://www.sci.muni.cz/~mikulik/gnuplot.html"><TT>http://www.sci.muni.cz/ mikulik/gnuplot.html</TT></A> has Petr's famous OS/2 mouse support and the pm3d terminal for colour 3d surfaces. Furthermore some more links to other sites </LI> </UL> <P> Some documentation is available in other languages than English. Those include: <UL> <LI><A NAME="tex2html14" HREF="http://www.multimania.com/~gersoo/gnuplt/index.html"><TT>http://www.multimania.com/ gersoo/gnuplt/index.html</TT></A> contient des informations dans la langue de Molière: les 1ers pas avec <SPAN CLASS="textbf">gnuplot</SPAN>, malheureusement seulement version 3.5. Vous trouverez un cours directement en ligne appelleé "1ers pas avec gnuplot". Le cours est aussi disponible en Postscript. </LI> <LI><A NAME="tex2html15" HREF="http://www.al.lu/euler/gnuplot.shtml"><TT>http://www.al.lu/euler/gnuplot.shtml</TT></A> encore des informations en langue française avec possibilité de téléchargement des versions binaires </LI> </UL> <P> Here are some more sites, however these are somewhat outdated in carrying still references to beta versions. If you download software from there you should be aware that beta versions are not officially endorsed. <P> <UL> <LI><A NAME="tex2html16" HREF="http://www.cs.dartmouth.edu/gnuplot_info.html"><TT>http://www.cs.dartmouth.edu/gnuplot_info.html</TT></A> slightly outdated site for the 3.6 beta version, but also a web-gateway to the users' newsgroup </LI> <LI><A NAME="tex2html17" HREF="http://members.theglobe.com/gnuplot/"><TT>http://members.theglobe.com/gnuplot/</TT></A> basically same as above. </LI> <LI><A NAME="tex2html18" HREF="http://homepage.mac.com/gnuplot/"><TT>http://homepage.mac.com/gnuplot/</TT></A> is the new site for a Macintosh port of <SPAN CLASS="textbf">gnuplot</SPAN> </LI> </UL> <P> The following sites were said to exist, however they seem to be down right now. <UL> <LI><A NAME="tex2html19" HREF="http://www.geocities.com/SiliconValley/Foothills/6647/"><TT>http://www.geocities.com/SiliconValley/Foothills/6647/</TT></A> the copyright statement and some binaries contains ads </LI> <LI><A NAME="tex2html20" HREF="http://www.delorie.com/gnu/docs/gnuplot/gplot_toc.html"><TT>http://www.delorie.com/gnu/docs/gnuplot/gplot_toc.html</TT></A> doesn't work </LI> <LI><A NAME="tex2html21" HREF="ftp://picard.tamu.edu/pub/gnuplot"><TT>picard.tamu.edu</TT> in <TT>/pub/gnuplot</TT></A> gives a tutorial </LI> <LI><A NAME="tex2html22" HREF="http://feff.phys.washington.edu/~ravel/gnuplot"><TT>http://feff.phys.washington.edu/ ravel/gnuplot</TT></A> has a new mode for the users of (X)Emacs </LI> </UL> <P> <H1><A NAME="SECTION00040000000000000000"> <SPAN CLASS="arabic">2</SPAN> Setting it up</A> </H1> <P> <H2><A NAME="SECTION00041000000000000000"> <SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">1</SPAN> What is the current version of <SPAN CLASS="textbf">gnuplot</SPAN>?</A> </H2> <P> The current version of <SPAN CLASS="textbf">gnuplot</SPAN> is 3.7, which has many improvements over 3.5. 3.6 was never released to avoid confusions with the beta versions. <P> <H2><A NAME="SECTION00042000000000000000"></A> <A NAME="where-get-gnuplot"></A> <BR> <SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">2</SPAN> Where can I get <SPAN CLASS="textbf">gnuplot</SPAN>? </H2> <P> The best place is definitly <A NAME="tex2html23" HREF="http://www.gnuplot.info"><TT>http://www.gnuplot.info</TT></A>. From there you find various pointers to other sites. <P> The source distribution ("gnuplot-3.7.tar.gz" or a similar name) is available from the official distribution site and its mirrors. <P> The main server is <A NAME="tex2html24" HREF="ftp://ftp.gnuplot.info/pub/gnuplot/"><TT>ftp.gnuplot.info</TT> in <TT>/pub/gnuplot/</TT></A>. This server is mirrored by several others, among those are <UL> <LI><A NAME="tex2html25" HREF="ftp://mirror.aarnet.edu.au/pub/gnuplot/"><TT>mirror.aarnet.edu.au</TT> in <TT>/pub/gnuplot/</TT></A> </LI> <LI><A NAME="tex2html26" HREF="ftp://ftp.dartmouth.edu/pub/gnuplot/"><TT>ftp.dartmouth.edu</TT> in <TT>/pub/gnuplot/</TT></A> </LI> <LI><A NAME="tex2html27" HREF="ftp://ftp.irisa.fr/pub/gnuplot/"><TT>ftp.irisa.fr</TT> in <TT>/pub/gnuplot/</TT></A> </LI> <LI><A NAME="tex2html28" HREF="ftp://ftp.gnuplot.vt.edu/pub/gnuplot/"><TT>ftp.gnuplot.vt.edu</TT> in <TT>/pub/gnuplot/</TT></A> </LI> </UL> <P> You can also have a look at the following WWW-pages which provide a source to obtain <SPAN CLASS="textbf">gnuplot</SPAN>: <UL> <LI><A NAME="tex2html29" HREF="http://members.theglobe.com/gnuplot/"><TT>http://members.theglobe.com/gnuplot/</TT></A> </LI> <LI><A NAME="tex2html30" HREF="http://www.geocities.com/SiliconValley/Foothills/6647/"><TT>http://www.geocities.com/SiliconValley/Foothills/6647/</TT></A> </LI> <LI><A NAME="tex2html31" HREF="http://mirror.aarnet.edu.au/pub/gnuplot/"><TT>http://mirror.aarnet.edu.au/pub/gnuplot/</TT></A> </LI> </UL> <P> The current version for the Macintosh is 2.04b, based on <SPAN CLASS="textbf">gnuplot</SPAN> 3.5 pre3.6beta338, and is available from <UL> <LI><A NAME="tex2html32" HREF="http://users.ece.gatech.edu/~schooley/"><TT>http://users.ece.gatech.edu/ schooley/</TT></A>. </LI> </UL> Unfortunately, this version does not seem to be maintained anymore. <P> Source and binary distributions for the Amiga are available on Aminet <A NAME="tex2html33" HREF="ftp://ftp.wustl.edu~aminet/"><TT>ftp.wustl.edu</TT> in <TT> aminet/</TT></A> and its mirrors, for example ftp.uni-kl.de, oes.orst.edu or ftp.luth.se. <P> MS-DOS and MS-Windows binaries are available from the above servers and are called gp37dos.zip, gp37dj.zip, gp37w16.zip, gp37mgw.zip, gnuplot3.7cyg.zip. <P> OS/2 binaries are called gp37os2.zip. <P> An X11 Window System front-end is available at <A NAME="tex2html34" HREF="http://www.flash.net/~dmishee/xgfe/xgfe.html"><TT>http://www.flash.net/ dmishee/xgfe/xgfe.html</TT></A>. <P> The NeXTSTEP front end can be found at <A NAME="tex2html35" HREF="ftp://next-ftp.peak.org/pub/next/binaries/plotting/Gnuplot1.2_bin.tar.Z"><TT>next-ftp.peak.org</TT> in <TT>/pub/next/binaries/plotting/Gnuplot1.2_bin.tar.Z</TT></A>. <P> A version for OS-9/68K can be found at <A NAME="tex2html36" HREF="ftp://cabrales.cs.wisc.edu/pub/OSK/GRAPHICS/gnuplot32x.tar.Z"><TT>cabrales.cs.wisc.edu</TT> in <TT>/pub/OSK/GRAPHICS/gnuplot32x.tar.Z</TT></A>; it includes both an X-Window Systems and a non - X-Window Systems version. <P> Versions for the Atari ST and TT, which include some GEM windowing support, are available from <A NAME="tex2html37" HREF="ftp://ftp.uni-kl.de/pub/atari/graphics/"><TT>ftp.uni-kl.de</TT> in <TT>/pub/atari/graphics/</TT></A>, as gplt35st.zip and gplt35tt.zip. They work best under MiNT. <P> Executable files, plus documentation in Japanese, exist for the X680x0 on <A NAME="tex2html38" HREF="ftp://ftp.csis.oita-u.ac.jp/pub/x68k/fj.binaries.x68000/vol2"><TT>ftp.csis.oita-u.ac.jp</TT> in <TT>/pub/x68k/fj.binaries.x68000/vol2</TT></A>. <P> It is a good idea to look for a nearby ftp site when downloading things. You can use archie for this. See if an archie client is installed at your system (by simply typing archie at the command prompt), or send mail to <A NAME="tex2html39" HREF="mailto:archie@sura.net"><TT>archie@sura.net</TT></A> with the word 'help' in both the subject line and the body of the mail. However, be aware that the version you find at a near ftp site may well be out of date; check the last modification date and the number of bytes against the newest release at one of the official servers. <P> If you can't locate a working archie server, you can use other web-based search engines for searching for <SPAN CLASS="textbf">gnuplot</SPAN>. One of these would be Lycos at <A NAME="tex2html40" HREF="http://ftpsearch.lycos.com/"><TT>http://ftpsearch.lycos.com/</TT></A>. <P> As of June 1999, the <SPAN CLASS="textbf">gnuplot</SPAN> distribution is also mirrored at the Comprehensive TeX Archive Network (CTAN) in the <TT>graphics/gnuplot</TT> directory. See <UL> <LI><A NAME="tex2html41" HREF="http://www.ctan.org/"><TT>http://www.ctan.org/</TT></A>. </LI> </UL> <P> Bug fixes can also be found at <SPAN CLASS="textbf">gnuplot</SPAN> distribution sites in the <TT>patches</TT> directory. <P> <H2><A NAME="SECTION00043000000000000000"> <SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">3</SPAN> How do I get <SPAN CLASS="textbf">gnuplot</SPAN> to compile on my system?</A> </H2> <P> As you would any other installation. Read the files README.1ST and README. <P> For Unix, use configure and make. For DOS, if you are using bash and DJGPP, you can just run <TT>djconfig.sh</TT>. For other platforms, copy the relevant makefile from <TT>config/</TT> to <TT>src</TT>, change to <TT>src</TT> and run make. <P> <H2><A NAME="SECTION00044000000000000000"> <SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">4</SPAN> What documentation is there, and how do I get it?</A> </H2> <P> The documentation is included in the source distribution. Look at the docs subdirectory, where you'll find <P> <UL> <LI>a Unix man page, which says how to start <SPAN CLASS="textbf">gnuplot</SPAN> </LI> <LI>a help file, which also can be printed as a manual </LI> <LI>a tutorial on using <SPAN CLASS="textbf">gnuplot</SPAN> with <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> </LI> <LI>a quick reference summary sheet for <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN>only </LI> </UL> <P> PostScript copies of the documentation can be ftp'd from <A NAME="tex2html42" HREF="ftp://ftp.dartmouth.edu/pub/gnuplot"><TT>ftp.dartmouth.edu</TT> in <TT>/pub/gnuplot</TT></A>, as <TT>manual.ps.Z</TT> and <TT>tutorial.ps.Z</TT> <P> The documentation is built during the installation if you have <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> installed on your system, look in the directories <TT>docs</TT> and <TT>tutorial</TT>. <P> Documentation about <SPAN CLASS="textbf">gnuplot</SPAN> is available in the most common formats at the <SPAN CLASS="textbf">gnuplot</SPAN> distribution sites in the files <TT>gpdoc.zip</TT> and <TT>gpdoc2.zip</TT>. <P> <H1><A NAME="SECTION00050000000000000000"> <SPAN CLASS="arabic">3</SPAN> Working with it.</A> </H1> <P> <H2><A NAME="SECTION00051000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">1</SPAN> How do I get help?</A> </H2> <P> Read this document. <P> Give the 'help' command at the initial prompt. After that, keep looking through the keywords. Good starting points are 'plot' and 'set'. <P> Read the manual, if you have it. <P> Look through the demo subdirectory; it should give you some ideas. <P> Ask your colleagues, the system administrator or the person who set up <SPAN CLASS="textbf">gnuplot</SPAN>. <P> If all these fail, please upgrade to the newest version of <SPAN CLASS="textbf">gnuplot</SPAN> or urge your system-administrator to do so. Then post a question to ~<A NAME="tex2html43" HREF="news:comp.graphics.apps.gnuplot"><TT>comp.graphics.apps.gnuplot</TT></A> or send mail to the gatewayed mailing list <A NAME="tex2html44" HREF="mailto:info-gnuplot@dartmouth.edu"><TT>info-gnuplot@dartmouth.edu</TT></A>. Do not forget to cite the version number and the operating system. If you want to subscribe to the mailing list, send a mail to <A NAME="tex2html45" HREF="mailto:majordomo@dartmouth.edu"><TT>majordomo@dartmouth.edu</TT></A> with the body of the message being 'subscribe info-gnuplot'. Please don't do this if you can get ~<A NAME="tex2html46" HREF="news:comp.graphics.apps.gnuplot"><TT>comp.graphics.apps.gnuplot</TT></A> directly. If you post a question there, it is considered good form to solicit e-mail replies and post a summary. <P> <H2><A NAME="SECTION00052000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">2</SPAN> How do I print out my graphs?</A> </H2> <P> The kind of output produced is determined by the 'set terminal' command; for example, 'set terminal postscript' will produce the graph in PostScript format. Output can be redirected using the 'set output' command. <P> As an example, the following prints out a graph of sin(x) on a Unix machine running the X-Window System. <P> <PRE> gnuplot> plot [-6:6] sin(x) gnuplot> set terminal postscript Terminal type set to 'postscript' Options are 'landscape monochrome "Courier" 14' gnuplot> set output "sin.ps" gnuplot> replot gnuplot> set output # set output back to default gnuplot> set terminal x11 # ditto for terminal type gnuplot> ! lp -ops sin.ps # print PS File (site dependent) request id is lprint-3433 (standard input) lp: printed file sin.ps on fg20.rz.uni-karlsruhe.de (5068 Byte) ! gnuplot> </PRE> <P> In Microschrott Windows you click in the upper left corner of the graph window and print directly from there. <P> <H2><A NAME="SECTION00053000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">3</SPAN> How do I include my graphs in <word processor>?</A> </H2> <P> Basically, you save your plot to a file in a format your word processor can understand (using "set term" and "set output", see above), and then you read in the plot from your word processor. Vector formats should be preferred, as you can scale your graph later to the right size. <P> Details depend on the kind of word processor you use; use "set term" to get a list of available file formats. <P> Many word processors can use Encapsulated PostScript for graphs. This can be generated by the "set terminal postscript eps" command. Most MS-DOS word processors understand HPGL (terminal type hpgl). <P> With TeX, it depends on what you use to print your dvi files. If you use dvips or dvi2ps, you can use Encapsulated PostScript. For emTeX (popular for MS-DOSns OS/2), you can use emTeX, otherwise use the <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> terminal type, which generates a picture environment. <P> If nothing else helps, try using the pgm or ppm format and converting it to a bitmap format your favourite word processor can understand. An invaluable tool for this is Jef Poskanzer's PBMPLUS package. <P> The PBMPLUS package is available in the contrib distribution for the X-Window System. The original site for this is <A NAME="tex2html47" HREF="ftp://ftp.x.org/contrib/"><TT>ftp.x.org</TT> in <TT>/contrib/</TT></A>. There are many mirrors, e.g. <A NAME="tex2html48" HREF="ftp://ftp.tu-darmstadt.de/pub/X11/contrib/"><TT>ftp.tu-darmstadt.de</TT> in <TT>/pub/X11/contrib/</TT></A> or . <A NAME="tex2html49" HREF="ftp://sunsite.unc.edu/pub/X11/contrib/"><TT>sunsite.unc.edu</TT> in <TT>/pub/X11/contrib/</TT></A>. <P> The most recent release of pbm by the author is dated December 91 and is called <TT>pbmplus10dec91.tar.Z</TT>. <P> There is new version including lots of patches from the net that is not maintained by the author called netpbm, with the newest version called <TT>netpbm-1mar1994.tar.gz</TT>. <P> Check archie (see Q<A HREF="#where-get-gnuplot">2.2</A>) for an archive site near you. <P> For Microso$t Windows and MacOS you can use the clip board to copy your graph and paste it into your favourite Windows or MacOS word processor. <P> <H2><A NAME="SECTION00054000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">4</SPAN> How do I post-process a <SPAN CLASS="textbf">gnuplot</SPAN> graph?</A> </H2> <P> This depends on the terminal type you use. <P> You can use the terminal type fig (you may need to recompile <SPAN CLASS="textbf">gnuplot</SPAN> to enable this terminal type, by putting <code>#define FIG</code> into <term.h>), and use the xfig drawing program to edit the plot afterwards. You can obtain the xfig program from its web site <A NAME="tex2html50" HREF="http://www.xfig.org/"><TT>http://www.xfig.org/</TT></A>. More information about the text-format used for fig can be found in the fig-package. <P> You may use the tgif terminal, which creates output suitable for reading within tgif (<A NAME="tex2html51" HREF="http://bourbon.cs.umd.edu:8001/tgif/"><TT>http://bourbon.cs.umd.edu:8001/tgif/</TT></A>), an interactive 2-D drawing tool under X11. <P> Both tgif and xfig can also be obtained from the X Window contrib distribution (see Q3.3). <P> Pstoedit can convert Postscript into a wide variety of formats. Pstoedit is available a <A NAME="tex2html52" HREF="http://www.geocities.com/SiliconValley/Nework/1958/pstoedit/"><TT>http://www.geocities.com/SiliconValley/Nework/1958/pstoedit/</TT></A>. <P> Gimp may be able to post-process pixel graphics generated with <SPAN CLASS="textbf">gnuplot</SPAN>. <P> In general, you should use a vector graphics program to post-process vector graphic formats, and pixel based programs for pixel graphics. <P> <H2><A NAME="SECTION00055000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">5</SPAN> How do I change symbol size, line thickness and the like?</A> </H2> <P> Again, this depends on the terminal type. For PostScript, you can edit the generated PostScript file. An overview of what means what in the PostScript files <SPAN CLASS="textbf">gnuplot</SPAN> generates can be found at <A NAME="tex2html53" HREF="ftp://picard.tamu.edu/pub/gnuplot/"><TT>picard.tamu.edu</TT> in <TT>/pub/gnuplot/</TT></A> as gs-ps.doc. A general introduction to PostScript can be found at <A NAME="tex2html54" HREF="ftp://unix.hensa.ac.uk/pub/misc/ukc.reports/comp.sci/reports/"><TT>unix.hensa.ac.uk</TT> in <TT>/pub/misc/ukc.reports/comp.sci/reports/</TT></A> as 11-92.ps.Z. <P> <H2><A NAME="SECTION00056000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">6</SPAN> How do I generate plots in the GIF format?</A> </H2> <P> If <SPAN CLASS="textbf">gnuplot</SPAN> was compiled with the external GD library, there is a gif terminal. <P> As of version 1.6, gd library dropped support for gif in favour of the superior png format. For those who absolutely need gif support in <SPAN CLASS="textbf">gnuplot</SPAN>, we are providing older versions of gd library at the <SPAN CLASS="textbf">gnuplot</SPAN> distribution sites which are free of Unisys patented code. Please read also the file README a the ftp-sites. <P> <H2><A NAME="SECTION00057000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">7</SPAN> Can I animate my graphs?</A> </H2> <P> First have a look at animate.dem in the demo directory of <SPAN CLASS="textbf">gnuplot</SPAN>. Basically, animated graphs are a sequence of plots in a suitable format. <P> Then have a look at the tool whirlgif 3.04, available at <A NAME="tex2html55" HREF="http://www.danbbs.dk/~dino/whirlgif"><TT>http://www.danbbs.dk/ dino/whirlgif</TT></A>. It reads run-length encoded gifs and packs them into a minimal animation. On the web-pages you will find a manual and an example. <P> You can also write a small script to get <SPAN CLASS="textbf">gnuplot</SPAN> to output a family of GIF files, then have it execute some animator such as gifsicle: <A NAME="tex2html56" HREF="http://http://www.lcdf.org/~eddietwo/gifsicle"><TT>http://http://www.lcdf.org/ eddietwo/gifsicle</TT></A> or gifmerge <A NAME="tex2html57" HREF="http://http://the-labs.com/GIFMerge"><TT>http://http://the-labs.com/GIFMerge</TT></A> <P> mpeg_encode will encode a sequence of images into the mpeg-format. <P> <H2><A NAME="SECTION00058000000000000000"> <SPAN CLASS="arabic">3</SPAN>.<SPAN CLASS="arabic">8</SPAN> How do I plot implicit defined graphs?</A> </H2> <P> Implicit graphs or curves cannot be plotted directly in <SPAN CLASS="textbf">gnuplot</SPAN>. However there is a workaround. <PRE> gnuplot> # as example. Place your definition in the following line gnuplot> f(x,y) = y - x**2 / tan(y) gnuplot> set contour base gnuplot> set cntrparam levels discrete 0.0 gnuplot> set nosurface gnuplot> set term table gnuplot> set out 'curve.dat' gnuplot> splot f(x,y) gnuplot> set out gnuplot> set term {your usual terminal for interactive work} gnuplot> plot 'curve.dat' w l </PRE> The trick is to draw the single contour line z=0 of the surface z=f(x,y), and store the resulting contour curve to a <SPAN CLASS="textbf">gnuplot</SPAN> datafile. <P> <H1><A NAME="SECTION00060000000000000000"> <SPAN CLASS="arabic">4</SPAN> Wanted features</A> </H1> <P> <H2><A NAME="SECTION00061000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">1</SPAN> What's new in <SPAN CLASS="textbf">gnuplot</SPAN> 3.7?</A> </H2> <P> Too many things to be named here. Please refer to the NEWS file in the source distribution. <P> <H2><A NAME="SECTION00062000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">2</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> have hidden line removal?</A> </H2> <P> Version 3.7 supports hidden line removal on all platforms; use the command <code>set hidden3d</code>. <P> The 16-bit binaries of <SPAN CLASS="textbf">gnuplot</SPAN> support the hidden line removal only partially as the hidden-line algorithm may hit the 640k memory limit. <P> <H2><A NAME="SECTION00063000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">3</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> support bar-charts/histograms/boxes?</A> </H2> <P> Use the style "with boxes" for bar charts. To get filled boxes, you can try a modification by Steve Cumming and jturk, available via ftp from the contrib directory <A NAME="tex2html58" HREF="ftp://ftp.ucc.ie/pub/gnuplot/contrib/gpl37fboxpatch.tar.gz"><TT>ftp.ucc.ie</TT> in <TT>/pub/gnuplot/contrib/gpl37fboxpatch.tar.gz</TT></A>. <P> Bernhard Reiter wrote an AWK script to post-process the fig-terminal output. Please have a look at <A NAME="tex2html59" HREF="http://www.usf.uni-osnabrueck.de/~breiter/tools/gnuplot/barcharts.en.html"><TT>http://www.usf.uni-osnabrueck.de/ breiter/tools/gnuplot/barcharts.en.html</TT></A>. <P> <H2><A NAME="SECTION00064000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">4</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> support pie charts?</A> </H2> <P> It's not possible in <SPAN CLASS="textbf">gnuplot</SPAN>, but have a look at <A NAME="tex2html60" HREF="http://www.usf.uni-osnabrueck.de/~breiter/tools/piechart/piecharts.en.html"><TT>http://www.usf.uni-osnabrueck.de/ breiter/tools/piechart/piecharts.en.html</TT></A> <P> <H2><A NAME="SECTION00065000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">5</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> quarterly time charts?</A> </H2> <P> It's not possible in <SPAN CLASS="textbf">gnuplot</SPAN>, but have a look at <A NAME="tex2html61" HREF="http://ricardo.ecn.wfu.edu/~cottrell/qplot"><TT>http://ricardo.ecn.wfu.edu/ cottrell/qplot</TT></A>. The corresponding file <code>qplot.zip</code> can be obtained from the contrib directory on any <SPAN CLASS="textbf">gnuplot</SPAN> server. <P> <H2><A NAME="SECTION00066000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">6</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> support multiple y-axes on a single plot?</A> </H2> <P> Yes. You can have 2 x- and 2 y-axes per plot. See "plot". <P> <H2><A NAME="SECTION00067000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">7</SPAN> Can I put multiple pages on one page?</A> </H2> <P> Yes. "set multiplot" <P> If you use the postscript terminal and plot one graph per page you can use the program mpage (<A NAME="tex2html62" HREF="http://www.mesa.nl/pub/mpage"><TT>http://www.mesa.nl/pub/mpage</TT></A>) to print multiple logical pages per physical page. A similar program is the psnup program in the psutils package. This package is available at any CTAN mirror. <P> <H2><A NAME="SECTION00068000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">8</SPAN> Can I put both data files and commands into a single file?</A> </H2> <P> This is possible by the new <code>plot "-"</code> possibility. The <code>plot "-"</code> command allows to read the data to be plot from standard input or the current batch job. <P> <PRE> gnuplot> plot "-" 1 1 2 4 3 9 <CTRL-D> </PRE> <P> <H2><A NAME="SECTION00069000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">9</SPAN> Can I put Greek letters and super/subscripts into my labels?</A> </H2> <P> You might try using the <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> terminal type and putting text like <code>"\\alpha_{3}"</code> or <code>'\alpha_{3}'</code> into it. <P> The enhanced option in the postscript terminal is also able to use sub- and superscripts. It also allows to use Greek letters and symbols via symbol fonts. <P> If you include your <SPAN CLASS="textbf">gnuplot</SPAN>-graphs into a <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> document you can use the <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>-package psfrag to typeset any characters into your graphs. <P> One more possibility is to use the MetaPost terminal. It supports <SPAN CLASS="logo-TeX">T<SMALL>E</SMALL>X</SPAN> syntax and is converted onto encapsulated PostScript by mpost. <P> <H2><A NAME="SECTION000610000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">10</SPAN> Can I do 1:1 scaling of axes?</A> </H2> <P> Use "set size square". <P> <H2><A NAME="SECTION000611000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">11</SPAN> Can I put tic marks for x and y axes into 3d plots?</A> </H2> <P> Use the "with boxes" option. <P> <H2><A NAME="SECTION000612000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">12</SPAN> Does <SPAN CLASS="textbf">gnuplot</SPAN> support a driver for <graphics format>?</A> </H2> <P> To see a list of the available graphic drivers for your installation of <SPAN CLASS="textbf">gnuplot</SPAN>, type "set term". <P> Some graphics drivers are included in the normal distribution, but are uncommented by default. If you want to use them, you'll have to change gnuplot/term.h, and recompile. <P> <H2><A NAME="SECTION000613000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">13</SPAN> Can I put different text sizes into my plots?</A> </H2> <P> Some terminals, like the postscript terminal can, others can't. Look at the help for the different terminals. <P> <H2><A NAME="SECTION000614000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">14</SPAN> How do I modify <SPAN CLASS="textbf">gnuplot</SPAN>, and apply 'patches'?</A> </H2> <P> For this, you will need to recompile <SPAN CLASS="textbf">gnuplot</SPAN>. <P> Modifications people make are either done by replacing files, such as terminal drivers, or by 'patching'. If a file is a replacement, it will probably tell you in its README or in the lines at the beginning. <P> To patch a file, you need Larry Wall's patch utility. On many UNIX systems, it is already installed; do a man patch to check. If it isn't, you'll have to get it; it can be found wherever GNU software is archived. <P> <H2><A NAME="SECTION000615000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">15</SPAN> How do I skip data points?</A> </H2> <P> By specifying ? as a data value, as in <PRE> 1 2 2 3 3 ? 4 5 </PRE> <P> <H2><A NAME="SECTION000616000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">16</SPAN> How do I plot every nth point?</A> </H2> <P> This can be specified with the various options for the command "plot". <P> <H2><A NAME="SECTION000617000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">17</SPAN> How do I plot a vertical line?</A> </H2> <P> Depending on context, the main methods are: <UL> <LI><code>set arrow .... .... nohead</code> where you have to compute explicitly the start and the end of the arrow. </LI> <LI>generate (inlined) datapoints and plot them </LI> <LI>switch to parametric mode </LI> </UL> <P> <H2><A NAME="SECTION000618000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">18</SPAN> How do I plot data files </A> </H2> <P> <H2><A NAME="SECTION000619000000000000000"> <SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">19</SPAN> How do I include accentuated characters in Postscript output?</A> </H2> <P> To obtain accentuated characters like ü or n into postscript plots you should use the postscript character codes together with the appropriate encoding option. See the following example: <P> <PRE> gnuplot> set encoding iso_8859_1 gnuplot> set title "M\374nchner Bierverbrauch \374ber die Jahre" gnuplot> plot "bier.dat" u 1:2 </PRE> <P> <H1><A NAME="SECTION00070000000000000000"> <SPAN CLASS="arabic">5</SPAN> Miscellaneous</A> </H1> <P> <H2><A NAME="SECTION00071000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">1</SPAN> I've found a bug, what do I do?</A> </H2> <P> First, try to see whether it actually is a bug, or whether it is a feature which may be turned off by some obscure set-command. <P> Next, see whether you have an old version of <SPAN CLASS="textbf">gnuplot</SPAN>; if you do, chances are the bug has been fixed in a newer release. <P> Fixes for bugs reported since the release of the current version are held in the <TT>patches</TT> directory at <SPAN CLASS="textbf">gnuplot</SPAN> distribution sites. Before submitting a bug report, please check whether the bug in question has already been fixed. <P> If, after checking these things, you still are convinced that there is a bug, proceed as follows. If you have a fairly general sort of bug report, posting to ~<A NAME="tex2html63" HREF="news:comp.graphics.apps.gnuplot"><TT>comp.graphics.apps.gnuplot</TT></A> is probably the way to go. If you have investigated a problem in detail, especially if you have a context or unified diff that fixes the problem, please e-email a report to <A NAME="tex2html64" HREF="mailto:bug-gnuplot@dartmouth.edu"><TT>bug-gnuplot@dartmouth.edu</TT></A>. <P> The bug-gnuplot list is for reporting and collecting bug fixes, the ~<A NAME="tex2html65" HREF="news:comp.graphics.apps.gnuplot"><TT>comp.graphics.apps.gnuplot</TT></A> newsgroup will be more help for finding work arounds or actually solving <SPAN CLASS="textbf">gnuplot</SPAN> related problems. If you do send in a bug report, be sure and include the version of <SPAN CLASS="textbf">gnuplot</SPAN> (including patchlevel) as shown by the command "show version long", terminal driver, operating system, an exact description of the bug and input which can reproduce the bug. Failure to indicate these details can render a solution to your problem almost impossible. Also, any context diffs should be referenced against the latest official version of <SPAN CLASS="textbf">gnuplot</SPAN> if at all possible. <P> <H2><A NAME="SECTION00072000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">2</SPAN> Can I use <SPAN CLASS="textbf">gnuplot</SPAN> routines for my own programs?</A> </H2> <P> Yes. John Campbell <A NAME="tex2html66" HREF="mailto:jdc@nauvax.ucc.nau.edu"><TT>jdc@nauvax.ucc.nau.edu</TT></A> has written gplotlib, a version of <SPAN CLASS="textbf">gnuplot</SPAN> as C subroutines callable from a C program. This is available as gplotlib.tar.gz at <A NAME="tex2html67" HREF="ftp://ftp.nau.edu/pub/gplotlib.tar.gz"><TT>ftp.nau.edu</TT> in <TT>/pub/gplotlib.tar.gz</TT></A>. This library has been updated to be compatible with version 3.5. <P> On systems supporting the pipes, you can pipe commands to <SPAN CLASS="textbf">gnuplot</SPAN> from other programs. <P> <H2><A NAME="SECTION00073000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">3</SPAN> What extensions have people made to <SPAN CLASS="textbf">gnuplot</SPAN>? Where can I get them?</A> </H2> <P> Extensions are available from <A NAME="tex2html68" HREF="ftp://ftp.ucc.ie/pub/gnuplot/contrib/"><TT>ftp.ucc.ie</TT> in <TT>/pub/gnuplot/contrib/</TT></A> <P> Some extensions available: <UL> <LI><TT>barchart_via_fig</TT>: awk scripts to produce barcharts with filled boxes. </LI> <LI><TT>date-errorbar</TT>: allows dates in the hi/lo fields for errorbars. </LI> <LI><TT>gp37os2-mouse</TT>: OS/2 binaries with mouse support (feature included in current beta versions). </LI> <LI><TT>perltk</TT>: A perl/tk canvas widget. </LI> <LI><TT>polyg.patch</TT>: Implements a polygon plotting style. </LI> <LI><TT>xgfe</TT>: graphical front end using the Qt widgets available at <A NAME="tex2html69" HREF="http://lnc.usc.edu/docs/xgfe/xgfe.html"><TT>http://lnc.usc.edu/docs/xgfe/xgfe.html</TT></A>. </LI> <LI><TT>Gnuplot.py</TT>: A python package to create graphs from within python. More information at <A NAME="tex2html70" HREF="http://monsoon.harvard.edu/~mhagger/Gnuplot/Gnuplot.html"><TT>http://monsoon.harvard.edu/ mhagger/Gnuplot/Gnuplot.html</TT></A>. </LI> </UL> <P> <H2><A NAME="SECTION00074000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">4</SPAN> I need an integration, fft, iir-filter,....!</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> has been and is a plotting program, no data processing or mathematical program suite. Therefore <SPAN CLASS="textbf">gnuplot</SPAN> can't do that. Look into the demo "bivariat.dem" for a basic implementation of an integration. <P> For more sophisticated data-processing read the next section. <P> <H2><A NAME="SECTION00075000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">5</SPAN> Can I do heavy-duty data processing with <SPAN CLASS="textbf">gnuplot</SPAN>? or What is beyond <SPAN CLASS="textbf">gnuplot</SPAN>?</A> </H2> <P> <SPAN CLASS="textbf">gnuplot</SPAN> alone is not suited very well for this. One thing you might try is fudgit, an interactive multi-purpose fitting program written by Martin-D. Lacasse (<TT>isaac@frodo.physics.mcgill.ca</TT>). It can use <SPAN CLASS="textbf">gnuplot</SPAN> as its graphics back end and is available from <A NAME="tex2html71" HREF="ftp://ftp.physics.mcgill.ca/pub/Fudgit/fudgit_2.33.tar.Z"><TT>ftp.physics.mcgill.ca</TT> in <TT>/pub/Fudgit/fudgit_2.33.tar.Z</TT></A> and from the main Linux server, tsx-11.mit.edu and its numerous mirrors around the world as <TT>/pub/linux/sources/usr.bin/fudgit-2.33.tar.z</TT>. Versions are available for AIX, Data General, HP-UX, IRIX 4, Linux, NeXT, Sun3, Sun4, Ultrix, OS/2 and MS-DOS. The MS-DOS version is available on simtel20 mirrors (simtel20 itself has closed down) in the "math" subdirectory as <code>fudg_231.zip</code>. <P> Carsten Grammes has written a fitting program which has been merged into <SPAN CLASS="textbf">gnuplot</SPAN> 3.7. <P> Michael Courtney has written a program called lsqrft, which uses the Levenberg-Marquardt - Algorithm for fitting data to a function. It is available from <A NAME="tex2html72" HREF="ftp://hobbes.nmsu.edu/pub/os2/apps/analysis/lsqrft15.zip"><TT>hobbes.nmsu.edu</TT> in <TT>/pub/os2/apps/analysis/lsqrft15.zip</TT></A>; sources, which should compile on Unix, and executables for MS-DOS and OS/2 are available. There is an interface to the OS/2 presentation manager. <P> You might also want to look at the applications developed by the Software Tools Group (STG) at the National Center for Supercomputing Applications. Ftp to ftp.ncsa.uiuc.edu and get the file README.BROCHURE for more information. <P> You can also try pgperl, an integration of the PGPLOT plotting package with Perl 5. Information can be found at <A NAME="tex2html73" HREF="http://www.ast.cam.ac.uk/AAO/local/www/kgb/pgperl"><TT>http://www.ast.cam.ac.uk/AAO/local/www/kgb/pgperl</TT></A>, the source is available from <A NAME="tex2html74" HREF="ftp://ftp.ast.cam.ac.uk/pub/kgb/pgperl/"><TT>ftp.ast.cam.ac.uk</TT> in <TT>/pub/kgb/pgperl/</TT></A> or <A NAME="tex2html75" HREF="ftp://linux.nrao.edu/pub/packages/pgperl/"><TT>linux.nrao.edu</TT> in <TT>/pub/packages/pgperl/</TT></A>. <P> Another possibility is Octave. To quote from its README: Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically. The latest released version of Octave is always available from <A NAME="tex2html76" HREF="http://www.che.wisc.edu/octave/"><TT>http://www.che.wisc.edu/octave/</TT></A> and via anonymous ftp from <A NAME="tex2html77" HREF="ftp://bevo.che.wisc.edu/pub/octave"><TT>bevo.che.wisc.edu</TT> in <TT>/pub/octave</TT></A>. Octave is licensed under GPL (see <A NAME="tex2html78" HREF="http://www.gnu.org/copyleft/gpl.html"><TT>http://www.gnu.org/copyleft/gpl.html</TT></A>). By the way, octave uses <SPAN CLASS="textbf">gnuplot</SPAN> as its plotting engine, so you get a data-processing program on top of <SPAN CLASS="textbf">gnuplot</SPAN>. <P> Finally, there is scilab at <A NAME="tex2html79" HREF="http://www-rocq.inria.fr/scilab/"><TT>http://www-rocq.inria.fr/scilab/</TT></A> doing about the same as matlab. It is free but copyrighted software. <P> <H2><A NAME="SECTION00076000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">6</SPAN> I have ported <SPAN CLASS="textbf">gnuplot</SPAN> to another system, or patched it. What do I do?</A> </H2> <P> If your patch is small, mail it to <A NAME="tex2html80" HREF="mailto:info-gnuplot-beta@dartmouth.edu"><TT>info-gnuplot-beta@dartmouth.edu</TT></A>, with a thorough description of what the patch is supposed to do, which version of <SPAN CLASS="textbf">gnuplot</SPAN> it is relative to, etc. Also, you can send notification of the patch to the FAQ maintainer, if you want a mention. Please don't send the patch itself to me. <P> If your modifications are extensive (such as a port to another system), place them on a web/ftp site for download. There is currently no possibility to upload patches. Send a note to <A NAME="tex2html81" HREF="mailto:info-gnuplot-beta@dartmouth.edu"><TT>info-gnuplot-beta@dartmouth.edu</TT></A> on where to find the patch, what it is supposed to do, which version of <SPAN CLASS="textbf">gnuplot</SPAN> it is to be applied against. For the time being (summer 1999) you can also send the patch to <A NAME="tex2html82" HREF="mailto:gnuplot@ftp.ucc.ie"><TT>gnuplot@ftp.ucc.ie</TT></A>. <P> <H2><A NAME="SECTION00077000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">7</SPAN> I want to help in developing the next version of <SPAN CLASS="textbf">gnuplot</SPAN>. What can I do?</A> </H2> <P> Join the <SPAN CLASS="textbf">gnuplot</SPAN> beta test mailing list by sending a mail containing the line <code>subscribe info-gnuplot-beta</code> in the body (not the subject) of the mail to <A NAME="tex2html83" HREF="mailto:Majordomo@Dartmouth.EDU"><TT>Majordomo@Dartmouth.EDU</TT></A>. <P> Also check with <A NAME="tex2html84" HREF="http://sourceforge.net/projects/gnuplot"><TT>http://sourceforge.net/projects/gnuplot</TT></A> about latest source for beta releases for development. <P> <H2><A NAME="SECTION00078000000000000000"> <SPAN CLASS="arabic">5</SPAN>.<SPAN CLASS="arabic">8</SPAN> Open questions for inclusion into the FAQ?</A> </H2> <P> <A NAME="tex2html85" HREF="mailto:info-gnuplot-beta@Dartmouth.EDU"><TT>info-gnuplot-beta@Dartmouth.EDU</TT></A>. <P> Please submit your questions (along with the answer) to <A NAME="tex2html86" HREF="mailto:info-gnuplot-beta@Dartmouth.EDU"><TT>info-gnuplot-beta@Dartmouth.EDU</TT></A>. <P> <H1><A NAME="SECTION00080000000000000000"> <SPAN CLASS="arabic">6</SPAN> Making life easier</A> </H1> <P> <H2><A NAME="SECTION00081000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">1</SPAN> How do I plot two functions in non-overlapping regions?</A> </H2> <P> Use a parametric plot. An example: <PRE> gnuplot> set parametric gnuplot> a=1 gnuplot> b=3 gnuplot> c=2 gnuplot> d=4 gnuplot> x1(t) = a+(b-a)*t gnuplot> x2(t) = c+(d-c)*t gnuplot> f1(x) = sin(x) gnuplot> f2(x) = x**2/8 gnuplot> plot [t=0:1] x1(t),f1(x1(t)) title "f1", x2(t), f2(x2(t)) title "f2" </PRE> <P> You can also use <SPAN CLASS="textbf">gnuplot</SPAN>'s ability to ignore mathematically undefined expressions: the expression <code>1/0</code> is silently ignored, thus a construction like <PRE> gnuplot> set xran [-10:10] gnuplot> plot (abs(x)>0.5?1/0: x**2) </PRE> plots a quadratic function only for <code>|x| < 0.5</code>. <P> <H2><A NAME="SECTION00082000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">2</SPAN> How do I run my data through a filter before plotting?</A> </H2> <P> If your system supports the popen() function, as Unix does, you should be able to run the output through another process, for example a short awk program, such as <P> <PRE> gnuplot> plot "< awk ' { print $1, $3/$2 } ' file.in" </PRE> <P> The plot command is very powerful and is able to do some arithmetic on datafiles. See "help plot". <P> <H2><A NAME="SECTION00083000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">3</SPAN> How do I make it easier to use <SPAN CLASS="textbf">gnuplot</SPAN> with <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>?</A> </H2> <P> There is a set of <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> macros and shell scripts that are meant to make your life easier when using <SPAN CLASS="textbf">gnuplot</SPAN> with <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>. This package can be found on <A NAME="tex2html87" HREF="ftp://ftp.dartmouth.edupub/gnuplot/latex.shar"><TT>ftp.dartmouth.edu</TT> in <TT>pub/gnuplot/latex.shar</TT></A>, by David Kotz. For example, the program "plotskel" can turn a gnuplot-output file plot.tex into a skeleton file skel.tex, that has the same size as the original plot but contains no graph. With the right macros, the skeleton can be used for preliminary <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN> passes, reserving the full graph for later passes, saving tremendous amounts of time. <P> <H2><A NAME="SECTION00084000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">4</SPAN> How do I save and restore my settings?</A> </H2> <P> Use the "save" and "load" commands for this; see "help save" and "help load" for details. <P> <H2><A NAME="SECTION00085000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">5</SPAN> How do I plot lines (not grids) using splot?</A> </H2> <P> If the data in a data file for splot is arranged in such a way that each one has the same number of data points (using blank lines as delimiters, as usual), splot will plot the data with a grid. If you want to plot just lines, use a different number of data entries (you can do this by doubling the last data point, for example). Don't forget to set parametric mode, of course. <P> <H2><A NAME="SECTION00086000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">6</SPAN> How do I plot a function f(x,y) which is bounded by other functions in the x-y plain?</A> </H2> <P> An example: <PRE> gnuplot> f(x,y) = x**2 + y **2 gnuplot> x(u) = 3*u gnuplot> yu(x) = x**2 gnuplot> yl(x) = -x**2 gnuplot> set parametric gnuplot> set cont gnuplot> splot [0:1] [0:1] u,yl(x(u))+(yu(x(u)) - yl(x(u)))*v,\ > f(x(u), (yu(x(u)) - yl(x(u)))*v) </PRE> <P> <H2><A NAME="SECTION00087000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">7</SPAN> How do I get rid of <feature> in a plot?</A> </H2> <P> Usually, there is a set command to do this; do a <code> gnuplot> ?set no</code> for a short overview. <P> <H2><A NAME="SECTION00088000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">8</SPAN> How do I call <SPAN CLASS="textbf">gnuplot</SPAN> from my own programs?</A> </H2> <P> There's a code which works for a UNIX system, using (efficient) named pipes. On M$ Windows platforms, due to the lacking standard input of GUI programs, you need to use the C-code <TT>pgnuplot</TT> written by Hans-Bernhard Broeker <A NAME="tex2html88" HREF="mailto:broeker@physik.rwth-aachen.de"><TT>broeker@physik.rwth-aachen.de</TT></A>. You can obtain this file on a ftp-server carrying the source for <TT>gnuplot</TT>. <P> <H2><A NAME="SECTION00089000000000000000"> <SPAN CLASS="arabic">6</SPAN>.<SPAN CLASS="arabic">9</SPAN> What if I need h-bar (Planck's constant)?</A> </H2> <P> There is no predefined variable like pi. However to put h-bar as a character into the label, you must use the PostScript terminal. You can play around with constructs like <code> @{/=56 -} {/=24 h}</code> or <code> {/=8 @{/Symbol=24 -} _{/=14 h}}</code> In the latter, the "-" (a long one in /Symbol) is non-spacing and 24-pt. The 14-pt "h" is offset by an 8-pt space (which is the space preceding the "_") but smaller, since it's written as a subscript. But these don't look too much like the hbar we're used to, since the bar is horizontal instead of sloped. I don't see a way to get that. I tried using an accent ( <BR> 264 in isoLatin encoding), but I haven't found a way to scale and position the pieces correctly. <P> One more possibility would be <code>{/=14 @^{/Symbol=10 -}{/=14 h}}</code>. <P> (This is a hint by Richard Crawford). <P> <H1><A NAME="SECTION00090000000000000000"> <SPAN CLASS="arabic">7</SPAN> Known Problems</A> </H1> <P> <H2><A NAME="SECTION00091000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">1</SPAN> <SPAN CLASS="textbf">Gnuplot</SPAN> is not plotting any points under X11! How come?</A> </H2> On VMS, you need to make several symbols: <P> <PRE> $ gnuplot_x11 :== $disk:[directory]gnuplot_x11 $ gnuplot :== $disk:[directory]gnuplot.exe $ def/job GNUPLOT$HELP disk:[directory]gnuplot.hlb </PRE> <P> Then run <SPAN CLASS="textbf">gnuplot</SPAN> from your command line, and use "set term x11". <P> If you run <SPAN CLASS="textbf">gnuplot</SPAN> on Unix systems, be sure that the newest <code>gnuplot_x11</code> is the first in your search path. <P> <H2><A NAME="SECTION00092000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">2</SPAN> My isoline data generated by a Fortran program is not handled correctly. What can I do?</A> </H2> <P> Update to the newest <SPAN CLASS="textbf">gnuplot</SPAN>. <SPAN CLASS="textbf">Gnuplot</SPAN> 3.7 is able to read Fortran-style files where a blank line can contain more than a linefeed. <P> <H2><A NAME="SECTION00093000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">3</SPAN> Why does <SPAN CLASS="textbf">gnuplot</SPAN> ignore my very small numbers?</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> treats all numbers less than 1e-08 as zero, by default. Thus, if you are trying to plot a collection of very small numbers, they may be plotted as zero. Worse, if you're plotting on a log scale, they will be off scale. Or, if the whole set of numbers is "zero", your range may be considered empty: <P> <PRE> gnuplot> plot 'test1' Warning: empty y range [4.047e-19:3e-11], adjusting to [-1:1] gnuplot> set yrange [4e-19:3e-11] gnuplot> plot 'test1' ^ y range is less than `zero` </PRE> <P> The solution is to change <SPAN CLASS="textbf">gnuplot</SPAN>'s idea of "zero": <PRE> gnuplot> set zero 1e-20 </PRE> <P> For more information, "help set zero" <P> <H2><A NAME="SECTION00094000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">4</SPAN> <SPAN CLASS="textbf">Gnuplot</SPAN> is plotting nothing when run via <SPAN CLASS="textbf">gnuplot</SPAN> <filename>! What can I do?</A> </H2> <P> Put a pause -1 after the plot command in the file. On an X-Window System system, you can also use the <code>-persist</code> option, the X11 window is then not closed. Close the X11 window by typing "q" when the focus is on it. <P> <H2><A NAME="SECTION00095000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">5</SPAN> My formulas are giving me nonsense results! What's going on?</A> </H2> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> does integer, and not floating point, arithmetic on integer expressions. For example, the expression 1/3 evaluates to zero. If you want floating point expressions, supply trailing dots for your floating point numbers. Example: <P> <PRE> gnuplot> print 1/3 0 gnuplot> print 1./3. 0.333333 </PRE> <P> This way of evaluating integer expressions is shared by both C and Fortran. <P> <H2><A NAME="SECTION00096000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">6</SPAN> Set output 'filename' isn't outputting everything it should!</A> </H2> <P> You need to flush the output with a closing 'set output'. <P> <H2><A NAME="SECTION00097000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">7</SPAN> When using the <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>-terminal, there is an error during the <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>-run!</A> </H2> <P> Please upgrade to <SPAN CLASS="textbf">gnuplot</SPAN> 3.7. Some versions of its beta-release had a problem in the <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>-terminal. <P> The <SPAN CLASS="logo,LaTeX">L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X</SPAN>2<SPAN CLASS="MATH"><IMG WIDTH="12" HEIGHT="16" ALIGN="BOTTOM" BORDER="0" SRC="img1.png" ALT="$\epsilon$"></SPAN>-core does no longer include the commands " <BR> Diamond" and " <BR> Box"; they are included in the latexsym package, which is part of the base distribution and thus part of any LaTeX implementation. Please do not forget to use this package. <P> <H2><A NAME="SECTION00098000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">8</SPAN> The <TT>exit</TT> command does not work as documented!</A> </H2> <P> This is a known bug and is fixed in the latest release. If you need the feature please upgrade to the latest release. <P> <H2><A NAME="SECTION00099000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">9</SPAN> I can't find the demos and example files at the URLs in the documentation!</A> </H2> <P> The examples have been removed from the NASA site. You can find the examples now at <A NAME="tex2html89" HREF="http://www.gnuplot.vt.edu/gnuplot/gpdocs"><TT>http://www.gnuplot.vt.edu/gnuplot/gpdocs</TT></A>. There you will find both PNG and GIF versions of the demo plots. There are some licensing problems with GIF images, so you should probably prefer the PNG ones. They also have the advantage to be much smaller in size. <P> <H2><A NAME="SECTION000910000000000000000"> <SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">10</SPAN> Calling <SPAN CLASS="textbf">gnuplot</SPAN> in a pipe or with a <SPAN CLASS="textbf">gnuplot</SPAN>-script doesn't produce a plot!</A> </H2> <P> You can call <SPAN CLASS="textbf">gnuplot</SPAN> by using a short Perl-script like the following: <PRE> #!/usr/local/bin/perl -w open (GP, "|/usr/local/bin/gnuplot -persist") or die "no gnuplot"; # force buffer to flush after each write use FileHandle; GP->autoflush(1); print GP,"set term x11;plot '/tmp/data.dat' with lines\n"; close GP </PRE> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> closes its plot window on exit. The <code>close GP</code> command is executed, and the plot window is closed even before you have a chance to look at it. <P> There are three solutions to this: first, use the <code>pause -1</code> command in <SPAN CLASS="textbf">gnuplot</SPAN> before closing the pipe. Second, close the pipe only if you are sure that you don't need <SPAN CLASS="textbf">gnuplot</SPAN> and its plot window anymore. Last, you can use the command line option <code>-persist</code>: this option leaves the X-Window System plot window open. <P> <H1><A NAME="SECTION000100000000000000000"> <SPAN CLASS="arabic">8</SPAN> Credits</A> </H1> <P> <SPAN CLASS="textbf">Gnuplot</SPAN> 3.7's main contributors are (in alphabetical order) Hans-Bernhard Broeker, John Campbell, Robert Cunningham, David Denholm, Gershon Elber, Roger Fearick, Carsten Grammes, Lucas Hart, Lars Hecking, Thomas Koenig, David Kotz, Ed Kubaitis, Russell Lang, Alexander Lehmann, Alexander Mai, Carsten Steger, Tom Tkacik, Jos Van der Woude, James R. Van Zandt, and Alex Woo. <P> This list was initially compiled by John Fletcher with contributions from Russell Lang, John Campbell, David Kotz, Rob Cunningham, Daniel Lewart and Alex Woo. Reworked by Thomas Koenig from a draft by Alex Woo, with corrections and additions from Alex Woo, John Campbell, Russell Lang, David Kotz and many corrections from Daniel Lewart. Again reworked for <SPAN CLASS="textbf">gnuplot</SPAN> 3.7 by Alexander Mai and Juergen v.Hagen with corrections by Lars Hecking, Hans-Bernhard Broecker and other people. <P> <H1><A NAME="SECTION000110000000000000000"> About this document ...</A> </H1> <STRONG><SPAN CLASS="textbf">Gnuplot</SPAN> FAQ</STRONG><P> This document was generated using the <A HREF="http://www.latex2html.org/"><STRONG>LaTeX</STRONG>2<tt>HTML</tt></A> translator Version 2002-2-1 (1.70) <P> Copyright © 1993, 1994, 1995, 1996, <A HREF="http://cbl.leeds.ac.uk/nikos/personal.html">Nikos Drakos</A>, Computer Based Learning Unit, University of Leeds. <BR> Copyright © 1997, 1998, 1999, <A HREF="http://www.maths.mq.edu.au/~ross/">Ross Moore</A>, Mathematics Department, Macquarie University, Sydney. <P> The command line arguments were: <BR> <STRONG>latex2html</STRONG> <TT>-split 0 -show_section_numbers -html_version 4.0 -nonavigation faq.tex</TT> <P> The translation was initiated by Lars Hecking on 2003-01-13 <BR><HR> <ADDRESS> Lars Hecking 2003-01-13 </ADDRESS> </BODY> </HTML>