Difference between revisions of "Gnuplot"

From Wiki
Jump to navigation Jump to search
m (Metapost -> MetaPost)
(Category:Math instead of Mathematics, todo tag, link)
Line 1: Line 1:
< [[Modules]]
+
< [[Modules]] | [[Graphics]] | [[Math]] >
  
http://www.gnuplot.info/
+
[http://www.gnuplot.info Gnuplot] is a portable command-line driven utility for function plotting for many platforms.
 
 
Gnuplot is a portable command-line driven utility for function plotting for many platforms.
 
  
 
== Preliminary Modules ==
 
== Preliminary Modules ==
Line 26: Line 24:
  
 
''Note: Peter's module currently only works under Linux, Hans's module has problems with newlines. Hoping that that will be fixed ...''
 
''Note: Peter's module currently only works under Linux, Hans's module has problems with newlines. Hoping that that will be fixed ...''
 
== TODO ==
 
 
* Fix OS-specifics to make the module work
 
* Support multiple terminals
 
* ...
 
  
 
== Alternatives for Function Plotting in ConTeXt ==
 
== Alternatives for Function Plotting in ConTeXt ==
Line 38: Line 30:
 
** [[source:m-graph.tex|m-graph]] Module (see [http://cm.bell-labs.com/who/hobby/cstr_164.pdf Drawing Graphs with MetaPost] by John D. Hobby)
 
** [[source:m-graph.tex|m-graph]] Module (see [http://cm.bell-labs.com/who/hobby/cstr_164.pdf Drawing Graphs with MetaPost] by John D. Hobby)
 
** link to functions that Hans wrote in MetaFun
 
** link to functions that Hans wrote in MetaFun
 +
 +
{{todo|
 +
* Fix OS-specifics to make the module work
 +
* Support multiple terminals
 +
* ...}}
  
 
[[Category:Modules]]
 
[[Category:Modules]]
 
[[Category:Graphics]]
 
[[Category:Graphics]]
[[Category:Mathematics]]
+
[[Category:Math]]

Revision as of 18:47, 14 January 2006

< Modules | Graphics | Math >

Gnuplot is a portable command-line driven utility for function plotting for many platforms.

Preliminary Modules

Some preliminary modules were contributed by Peter Münster [1] and Hans Hagen [2] [3] on the mailing list to enable inclusion of gnuplot graphs from ConTeXt. Follow the links mentioned above to see the details. General idea is to enable gnuplot graphics inclusion with simple commands such as:

% general settings for the whole document
\startGNUPLOTinclusions
set terminal postscript eps color
set title 'Trigonometry'
\stopGNUPLOTinclusions

% creating the graphics
\startGNUPLOTgraphics{sin}
plot sin(x)
\stopGNUPLOTgraphics

% including the graphics into the document
\useGNUPLOTgraphic[sin][width=5cm]

Note: Peter's module currently only works under Linux, Hans's module has problems with newlines. Hoping that that will be fixed ...

Alternatives for Function Plotting in ConTeXt


TODO:
  • Fix OS-specifics to make the module work
  • Support multiple terminals
  • ... (See: To-Do List)