Changes

Jump to navigation Jump to search
1,457 bytes added ,  18:36, 5 January 2006
preliminary page about Gnuplot support
< [[Modules]]

http://www.gnuplot.info/

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 [http://article.gmane.org/gmane.comp.tex.context/24884] and Hans Hagen [http://article.gmane.org/gmane.comp.tex.context/24935] 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:

<texcode>
% 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]
</texcode>

''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 ==

* in [[Metapost|MetaPost]]
** [[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

[[Category:Modules]]
[[Category:Graphics]]
[[Category:Mathematics]]

Navigation menu