Difference between revisions of "GNUPLOT"

From redlog.eu
Jump to: navigation, search
m (Created page with 'Author: Herbert Melenk GNUPLOT Interface for REDUCE The GNUPLOT system provides easy to use graphics output for curves or surfaces which are defined by formulas and/or data set…')
 
m
Line 3: Line 3:
 
GNUPLOT Interface for REDUCE
 
GNUPLOT Interface for REDUCE
  
The GNUPLOT system provides easy to use graphics output for curves or surfaces which are defined by formulas and/or data sets. GNUPLOT supports a variety of output devices such as VGA screen, postscript, picTeX, MS Windows. The REDUCE GNUPLOT package lets one use the GNUPLOT graphical output directly from inside REDUCE, either for the interactive display of curves/surfaces or for the production of pictures on paper.
+
The gnuplot system provides easy to use graphics output for curves or surfaces which are defined by formulas and/or data sets. Gnuplot supports a variety of output devices such as VGA screen, postscript, picTeX, MS Windows. The REDUCE GNUPLOT package lets one use the gnuplot graphical output directly from inside REDUCE, either for the interactive display of curves/surfaces or for the production of pictures on paper.
 +
 
 +
==Installation of the free Gnuplot software==
 +
The use of the GNUPLOT package requires the additional installation of the free gnuplot software. For BSD/Linux/Unix/Mac systems the expectation of the code is that invoking the command "gnuplot" as from a command-line will launch gnuplot, and the user needs to ensure that it has been installed and is properly on their PATH.
 +
 
 +
===Mac OS X===
 +
For the Mac there are no precompiled versions of gnuplot distributed by the developers themselves. For obtaining a precompiled current version of gnuplot, we recommend to proceed as follows:
 +
<ol>
 +
<li> Download the latest Mac OS X binary distribution of the free software [http://octave.sourceforge.net Octave] as a DMG. In that DMG there is a folder <code>Extras</code>. This folder contains another DMG, which  provides a precompiled <code>Gnuplot.app</code>. Copy <code>Gnuplot.app</code> to your Application folder.
 +
<li> There is a script <code>gnuplot</code> contained in <code>Gnuplot.app/Contents/Resources/bin/</code>. The location of this has be added to your load path, e.g., for the bash:
 +
<pre>
 +
export PATH=$PATH:/Applications/Gnuplot.app/Contents/Resources/bin/
 +
</pre>
 +
<li> At that point the following should work in Reduce:
 +
<pre>
 +
load_package gnuplot;
 +
plot(sin x,x=(-3 .. 3));
 +
</pre>
 +
You will notice, however, that output is based on X11 then. We recommend to use instead the AquaTerm.app, which is included in the Gnuplot.app delivered with Octave. For using this, go
 +
<pre>
 +
lisp (plotheader!* := "set term aqua");
 +
</pre>
 +
</ol>
 +
==External Links==
 +
* [http://www.gnuplot.info/ gnuplot] - the gnuplot homepage
 +
* [http://octave.sourceforge.net Octave] - Octave includes a precompiled gnuplot for Mac OS X
  
 
[[Category:Packages]]
 
[[Category:Packages]]

Revision as of 10:13, 27 May 2011

Author: Herbert Melenk

GNUPLOT Interface for REDUCE

The gnuplot system provides easy to use graphics output for curves or surfaces which are defined by formulas and/or data sets. Gnuplot supports a variety of output devices such as VGA screen, postscript, picTeX, MS Windows. The REDUCE GNUPLOT package lets one use the gnuplot graphical output directly from inside REDUCE, either for the interactive display of curves/surfaces or for the production of pictures on paper.

Installation of the free Gnuplot software

The use of the GNUPLOT package requires the additional installation of the free gnuplot software. For BSD/Linux/Unix/Mac systems the expectation of the code is that invoking the command "gnuplot" as from a command-line will launch gnuplot, and the user needs to ensure that it has been installed and is properly on their PATH.

Mac OS X

For the Mac there are no precompiled versions of gnuplot distributed by the developers themselves. For obtaining a precompiled current version of gnuplot, we recommend to proceed as follows:

  1. Download the latest Mac OS X binary distribution of the free software Octave as a DMG. In that DMG there is a folder Extras. This folder contains another DMG, which provides a precompiled Gnuplot.app. Copy Gnuplot.app to your Application folder.
  2. There is a script gnuplot contained in Gnuplot.app/Contents/Resources/bin/. The location of this has be added to your load path, e.g., for the bash:
    export PATH=$PATH:/Applications/Gnuplot.app/Contents/Resources/bin/
    
  3. At that point the following should work in Reduce:
    load_package gnuplot; 
    plot(sin x,x=(-3 .. 3));
    

    You will notice, however, that output is based on X11 then. We recommend to use instead the AquaTerm.app, which is included in the Gnuplot.app delivered with Octave. For using this, go

    lisp (plotheader!* := "set term aqua");
    

External Links

  • gnuplot - the gnuplot homepage
  • Octave - Octave includes a precompiled gnuplot for Mac OS X